diff options
Diffstat (limited to 'src/plugins/cpptools/cppcompletion_test.cpp')
-rw-r--r-- | src/plugins/cpptools/cppcompletion_test.cpp | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/plugins/cpptools/cppcompletion_test.cpp b/src/plugins/cpptools/cppcompletion_test.cpp index 742e0a99ee..bf8fb0f772 100644 --- a/src/plugins/cpptools/cppcompletion_test.cpp +++ b/src/plugins/cpptools/cppcompletion_test.cpp @@ -1441,6 +1441,19 @@ void CppToolsPlugin::test_completion_data() << QLatin1String("A") << QLatin1String("a")); + QTest::newRow("nested_class_declaration_with_object_name_inside_function") << _( + "int foo()\n" + "{\n" + " struct Nested\n" + " {\n" + " int i;\n" + " } n;\n" + " @;\n" + "}\n" + ) << _("n.") << (QStringList() + << QLatin1String("Nested") + << QLatin1String("i")); + QTest::newRow("nested_anonymous_class_QTCREATORBUG10876_1") << _( "struct EnclosingStruct\n" "{\n" |