diff --git a/cfg/posix.cfg b/cfg/posix.cfg index c1064ba86..01a839572 100644 --- a/cfg/posix.cfg +++ b/cfg/posix.cfg @@ -179,6 +179,14 @@ + + false + + + + + + false diff --git a/test/testmemleak.cpp b/test/testmemleak.cpp index 0aaaeb96b..afd8e2f94 100644 --- a/test/testmemleak.cpp +++ b/test/testmemleak.cpp @@ -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"