Fixed #6457: Added missing podtype defintions to posix.cfg.

This commit is contained in:
orbitcowboy 2015-01-26 08:35:22 +01:00
parent d8af472393
commit 180d7389a0
2 changed files with 8 additions and 0 deletions

View File

@ -459,4 +459,5 @@
<podtype name="suseconds_t" sign="u"/>
<podtype name="blksize_t" sign="s"/>
<podtype name="ssize_t" sign="s"/>
<podtype name="dirent"/>
</def>

View File

@ -4223,6 +4223,13 @@ private:
checkUninitVarB("blkcnt_t f() {blkcnt_t b; return b;}");
ASSERT_EQUALS("[test.cpp:1]: (error) Uninitialized variable: b\n", errout.str());
// dirent
checkUninitVarB("char f() { dirent d; return d.d_name[0]; }");
ASSERT_EQUALS("[test.cpp:1]: (error) Uninitialized variable: d\n", errout.str());
checkUninitVarB("ino_t f2() { dirent d; return d.d_ino; }");
ASSERT_EQUALS("[test.cpp:1]: (error) Uninitialized variable: d\n", errout.str());
}
};