From 047d19220aeddb20927a041af388530fbe5156ac Mon Sep 17 00:00:00 2001 From: Martin Ettl Date: Sun, 24 May 2015 10:03:50 +0200 Subject: [PATCH] #6608: Added a test case. --- test/testgarbage.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/test/testgarbage.cpp b/test/testgarbage.cpp index 2782ae82c..c3d0f1064 100644 --- a/test/testgarbage.cpp +++ b/test/testgarbage.cpp @@ -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"