extracttests; Fix syntax error in new unit test

This commit is contained in:
Daniel Marjamäki 2021-05-14 22:29:15 +02:00
parent 105bb78775
commit 11c0cc3a6e
1 changed files with 1 additions and 0 deletions

View File

@ -1284,6 +1284,7 @@ private:
"}");
ASSERT_EQUALS("[test.cpp:4]: (error) Uninitialized variable: learn\n", errout.str());
// extracttests.start: struct Entry { Entry *next; }; Entry *buckets;
checkUninitVar("void foo() {\n"
" Entry *entry, *nextEntry;\n"
" for(int i = 0; i < 10; i++) {\n"