diff options
Diffstat (limited to 'src/plugins/cpptools/cppcompletion_test.cpp')
-rw-r--r-- | src/plugins/cpptools/cppcompletion_test.cpp | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/plugins/cpptools/cppcompletion_test.cpp b/src/plugins/cpptools/cppcompletion_test.cpp index bf8fb0f772..d87f671951 100644 --- a/src/plugins/cpptools/cppcompletion_test.cpp +++ b/src/plugins/cpptools/cppcompletion_test.cpp @@ -1513,6 +1513,20 @@ void CppToolsPlugin::test_completion_data() ) << _("nestedOfNestedAnonymousClass.") << (QStringList() << QLatin1String("memberOfNestedOfNestedAnonymousClass")); + QTest::newRow("nested_anonymous_class_inside_function") << _( + "void fun()\n" + "{\n" + " union\n" + " {\n" + " int foo1;\n" + " int foo2;\n" + " };\n" + " @\n" + "};\n" + ) << _("foo") << (QStringList() + << QLatin1String("foo1") + << QLatin1String("foo2")); + QTest::newRow("crash_cloning_template_class_QTCREATORBUG9329") << _( "struct A {};\n" "template <typename T>\n" |