Commit f7e6c400 authored by Orgad Shaneh's avatar Orgad Shaneh Committed by Orgad Shaneh

CppTools: Uncomment a test and fix it

The bug was fixed long time ago, the test is missing a semicolon

Change-Id: I0236048d2da059fe208591469fb69541705463cf
Reviewed-by: default avatarNikolai Kosjar <nikolai.kosjar@digia.com>
parent ed13ba2d
......@@ -707,30 +707,29 @@ void CppToolsPlugin::test_completion_data()
<< QLatin1String("Final")
<< QLatin1String("Global"));
// This test does not work due to the bug QTCREATORBUG-7912
// QTest::newRow("use_global_identifier_as_base_class: derived is enclosed by template. "
// "base as global") << _(
// "struct Global\n"
// "{\n"
// " int int_global;\n"
// "};\n"
// "\n"
// "template <typename T>\n"
// "struct Enclosing\n"
// "{\n"
// "struct Final : ::Global\n"
// "{\n"
// " int int_final;\n"
// "};\n"
// "}\n"
// "\n"
// "Enclosing<int>::Final c;\n"
// "@\n"
// ) << _("c.") << (QStringList()
// << QLatin1String("int_global")
// << QLatin1String("int_final")
// << QLatin1String("Final")
// << QLatin1String("Global"));
QTest::newRow("use_global_identifier_as_base_class: derived is enclosed by template. "
"base as global") << _(
"struct Global\n"
"{\n"
" int int_global;\n"
"};\n"
"\n"
"template <typename T>\n"
"struct Enclosing\n"
"{\n"
"struct Final : ::Global\n"
"{\n"
" int int_final;\n"
"};\n"
"};\n"
"\n"
"Enclosing<int>::Final c;\n"
"@\n"
) << _("c.") << (QStringList()
<< QLatin1String("int_global")
<< QLatin1String("int_final")
<< QLatin1String("Final")
<< QLatin1String("Global"));
QTest::newRow("base_class_has_name_the_same_as_derived: base class is derived class") << _(
"struct A : A\n"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment