testrunner: add testcase for #7246.

This commit is contained in:
Matthias Krüger 2015-12-31 14:17:52 +01:00
parent 17ab0a4e9a
commit 7c1a4da6a4
1 changed files with 7 additions and 0 deletions

View File

@ -216,6 +216,7 @@ private:
TEST_CASE(garbageCode165); // #7235
TEST_CASE(garbageCode166); // #7236
TEST_CASE(garbageCode167); // #7237
TEST_CASE(garbageCode168); // #7246
TEST_CASE(garbageValueFlow);
TEST_CASE(garbageSymbolDatabase);
TEST_CASE(garbageAST);
@ -1422,6 +1423,12 @@ private:
//7237
checkCode("class D00i000{:D00i000::}i", false);
}
void garbageCode168() {
// 7246
checkCode("long foo(void) { return *bar; }", false);
}
};
REGISTER_TEST(TestGarbage)