diff --git a/test/testsymboldatabase.cpp b/test/testsymboldatabase.cpp index d6cfbb38b..9643e4021 100644 --- a/test/testsymboldatabase.cpp +++ b/test/testsymboldatabase.cpp @@ -131,6 +131,7 @@ private: TEST_CASE(symboldatabase19); // ticket #2991 (segmentation fault) TEST_CASE(symboldatabase20); // ticket #3013 (segmentation fault) TEST_CASE(symboldatabase21); + TEST_CASE(symboldatabase22); // ticket #3437 (segmentation fault) } void test_isVariableDeclarationCanHandleNull() { @@ -885,6 +886,13 @@ private: ASSERT_EQUALS("", errout.str()); } + // #ticket 3437 (segmentation fault) + void symboldatabase22() { + check("template struct A {};\n" + "A a;\n"); + ASSERT_EQUALS("", errout.str()); + } + }; REGISTER_TEST(TestSymbolDatabase)