testnullpointer; fix extracttests syntax error
This commit is contained in:
parent
3c885df74d
commit
e66427c395
|
@ -1284,7 +1284,7 @@ private:
|
||||||
"}");
|
"}");
|
||||||
ASSERT_EQUALS("[test.cpp:4]: (error) Uninitialized variable: learn\n", errout.str());
|
ASSERT_EQUALS("[test.cpp:4]: (error) Uninitialized variable: learn\n", errout.str());
|
||||||
|
|
||||||
// extracttests.start: struct Entry { Entry *next; }; Entry *buckets;
|
// extracttests.start: struct Entry { Entry *next; }; Entry *buckets[10];
|
||||||
checkUninitVar("void foo() {\n"
|
checkUninitVar("void foo() {\n"
|
||||||
" Entry *entry, *nextEntry;\n"
|
" Entry *entry, *nextEntry;\n"
|
||||||
" for(int i = 0; i < 10; i++) {\n"
|
" for(int i = 0; i < 10; i++) {\n"
|
||||||
|
|
Loading…
Reference in New Issue