posix.cfg: Added support for rewinddir().
This commit is contained in:
parent
269a4419f0
commit
ac4f7879db
|
@ -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/>
|
||||
|
|
|
@ -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"
|
||||
|
|
Loading…
Reference in New Issue