testnullpointer; fix extracttests syntax error

This commit is contained in:
Daniel Marjamäki 2021-05-15 14:59:00 +02:00
parent 3c885df74d
commit e66427c395
1 changed files with 1 additions and 1 deletions

View File

@ -1284,7 +1284,7 @@ private:
"}");
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"
" Entry *entry, *nextEntry;\n"
" for(int i = 0; i < 10; i++) {\n"