Fixed #5597 and added abort() support to stdcfg.

This commit is contained in:
Martin Ettl 2014-03-21 17:36:48 +01:00
parent 49b25b05d9
commit e00f50b850
2 changed files with 2 additions and 1 deletions

View File

@ -1,6 +1,7 @@
<?xml version="1.0"?> <?xml version="1.0"?>
<def> <def>
<function name="exit"><noreturn>true</noreturn></function> <function name="exit"><noreturn>true</noreturn></function>
<function name="abort"><noreturn>true</noreturn></function>
<memory> <memory>
<dealloc>free</dealloc> <dealloc>free</dealloc>

View File

@ -1379,7 +1379,7 @@ private:
ASSERT_EQUALS("", errout.str()); ASSERT_EQUALS("", errout.str());
check(code, true); check(code, true);
ASSERT_EQUALS("[test.cpp:5] -> [test.cpp:2]: (warning, inconclusive) Possible null pointer dereference: p - otherwise it is redundant to check it against null.\n", errout.str()); ASSERT_EQUALS("", errout.str());
} }
check("void foo(char *p) {\n" check("void foo(char *p) {\n"