posix.cfg: Added support for rewinddir().

This commit is contained in:
orbitcowboy 2014-12-10 16:10:03 +01:00
parent 269a4419f0
commit ac4f7879db
2 changed files with 17 additions and 0 deletions

View File

@ -179,6 +179,14 @@
</arg>
<leak-ignore/>
</function>
<function name="rewinddir">
<noreturn>false</noreturn>
<arg nr="1">
<not-null/>
<not-uninit/>
</arg>
<leak-ignore/>
</function>
<function name="rand_r">
<noreturn>false</noreturn>
<leak-ignore/>

View File

@ -331,6 +331,7 @@ private:
TEST_CASE(tmpfile_function);
TEST_CASE(fcloseall_function);
TEST_CASE(file_functions);
TEST_CASE(posix_rewinddir);
TEST_CASE(getc_function);
TEST_CASE(open_function);
@ -3681,6 +3682,14 @@ private:
ASSERT_EQUALS("", errout.str());
}
void posix_rewinddir() {
Settings settings;
settings.standards.posix = true;
check("void f(DIR *p) { rewinddir(p); }", &settings);
ASSERT_EQUALS("", errout.str());
}
void exit2() {
check("void f()\n"
"{\n"