#6608: Added a test case.

This commit is contained in:
Martin Ettl 2015-05-24 10:03:50 +02:00
parent dfb015a7e3
commit 047d19220a
1 changed files with 5 additions and 0 deletions

View File

@ -83,6 +83,7 @@ private:
TEST_CASE(garbageCode42); // #5760
TEST_CASE(garbageCode43); // #6703
TEST_CASE(garbageCode44); // #6704
TEST_CASE(garbageCode45); // #6608
TEST_CASE(garbageValueFlow);
TEST_CASE(garbageSymbolDatabase);
@ -480,6 +481,10 @@ private:
ASSERT_THROW(checkCode("{ { }; }; { class A : }; public typedef b;"), InternalError);
}
void garbageCode45() { // #6608
checkCode("struct true template < > { = } > struct Types \"s\" ; static_assert < int > ;");
}
void garbageValueFlow() {
// #6089
const char* code = "{} int foo(struct, x1, struct x2, x3, int, x5, x6, x7)\n"