summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/plugins/cpptools/cppcompletion_test.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/plugins/cpptools/cppcompletion_test.cpp b/src/plugins/cpptools/cppcompletion_test.cpp
index a655685c02..7a6dce2a3a 100644
--- a/src/plugins/cpptools/cppcompletion_test.cpp
+++ b/src/plugins/cpptools/cppcompletion_test.cpp
@@ -3398,6 +3398,16 @@ void CppToolsPlugin::test_completion_member_access_operator_data()
<< false
<< true;
+ QTest::newRow("objc_not_replacing") << _(
+ "typedef struct objc_object Bar;"
+ "class Foo {\n"
+ " Bar *bar;\n"
+ " void func() { @ }"
+ "};\n"
+ ) << _("bar.") << (QStringList())
+ << true
+ << false;
+
QTest::newRow("typedef_of_type_and_decl_of_type_no_replace_access_operator") << _(
"struct S { int m; };\n"
"typedef S SType;\n"