summaryrefslogtreecommitdiff
path: root/src/plugins/cpptools/cppcompletion_test.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/cpptools/cppcompletion_test.cpp')
-rw-r--r--src/plugins/cpptools/cppcompletion_test.cpp23
1 files changed, 23 insertions, 0 deletions
diff --git a/src/plugins/cpptools/cppcompletion_test.cpp b/src/plugins/cpptools/cppcompletion_test.cpp
index 418027b1be..628afccdbf 100644
--- a/src/plugins/cpptools/cppcompletion_test.cpp
+++ b/src/plugins/cpptools/cppcompletion_test.cpp
@@ -2874,6 +2874,29 @@ void CppToolsPlugin::test_completion_data()
) << _("p->") << (QStringList()
<< QLatin1String("Foo")
<< QLatin1String("bar"));
+
+ QTest::newRow("qualified_name_in_nested_type") << _(
+ "template<typename _Tp>\n"
+ "struct Temp {\n"
+ " struct Nested {\n"
+ " typedef typename _Tp::Nested2 N;\n"
+ " };\n"
+ "};\n"
+ "\n"
+ "struct Foo {\n"
+ " struct Nested2 {\n"
+ " int bar;\n"
+ " };\n"
+ "};\n"
+ "\n"
+ "void func()\n"
+ "{\n"
+ " Temp<Foo>::Nested::N p;\n"
+ " @;\n"
+ "}\n"
+ ) << _("p.") << (QStringList()
+ << QLatin1String("Nested2")
+ << QLatin1String("bar"));
}
void CppToolsPlugin::test_completion_member_access_operator()