Fixed #6457: Added missing podtype defintions to posix.cfg.
This commit is contained in:
parent
d8af472393
commit
180d7389a0
|
@ -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>
|
||||
|
|
|
@ -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());
|
||||
}
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in New Issue