Merge pull request #480 from orbitcowboy/master

posix.cfg: Added support for rewinddir().
This commit is contained in:
PKEuS 2014-12-11 11:13:57 +01:00
commit 524828a49b
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"