summaryrefslogtreecommitdiff
path: root/src/plugins/cpptools/cppcompletion_test.cpp
diff options
context:
space:
mode:
authorEike Ziller <eike.ziller@digia.com>2014-04-08 11:18:40 +0200
committerEike Ziller <eike.ziller@digia.com>2014-04-08 11:18:40 +0200
commitb6876586635e9c610b8362dae9c6f5e7bce9d08d (patch)
treeffdca9894ca6e5b09e321ce0728a0ff6b9862fa6 /src/plugins/cpptools/cppcompletion_test.cpp
parent49bbd218cb2489abf31fae176a417621cf8885e8 (diff)
parent780c21a1c3b5ac6b759b7423588011c89b2dad34 (diff)
downloadqt-creator-b6876586635e9c610b8362dae9c6f5e7bce9d08d.tar.gz
Merge remote-tracking branch 'origin/3.1'
Conflicts: qtcreator.pri qtcreator.qbs src/plugins/cpptools/cppcompletion_test.cpp Change-Id: Ic5e75b3ef164de664a1449ffa8579beaf5b02521
Diffstat (limited to 'src/plugins/cpptools/cppcompletion_test.cpp')
-rw-r--r--src/plugins/cpptools/cppcompletion_test.cpp16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/plugins/cpptools/cppcompletion_test.cpp b/src/plugins/cpptools/cppcompletion_test.cpp
index af8c7d78a9..878bcf78be 100644
--- a/src/plugins/cpptools/cppcompletion_test.cpp
+++ b/src/plugins/cpptools/cppcompletion_test.cpp
@@ -2231,6 +2231,22 @@ void CppToolsPlugin::test_completion_data()
" @\n"
"}\n"
) << _("double val = d.constBegin()->") << (QStringList());
+
+ QTest::newRow("nested_class_in_template_class_QTCREATORBUG-11752") << _(
+ "template <typename T>\n"
+ "struct Temp\n"
+ "{\n"
+ " struct Nested1 { T t; };\n"
+ " struct Nested2 { Nested1 n1; };\n"
+ "};\n"
+ "struct Foo { int foo; };\n"
+ "void fun() {\n"
+ " Temp<Foo>::Nested2 n2;\n"
+ " @\n"
+ "}\n"
+ ) << _("n2.n1.t.") << (QStringList()
+ << QLatin1String("foo")
+ << QLatin1String("Foo"));
}
void CppToolsPlugin::test_completion_member_access_operator()