Commit 946fcfa3 authored by Kevin Funk's avatar Kevin Funk

test_duchain-clang: Fix parse error

```
/tmp/testfile_k23568.cpp:8:12: error: calling a private constructor of class 'A::Q'
/tmp/testfile_k23568.h:1:27: note: implicitly declared private here
/tmp/testfile_k23568.cpp:10:12: error: calling a private constructor of class 'B::Q'
/tmp/testfile_k23568.h:1:27: note: implicitly declared private here
/tmp/testfile_k23568.cpp:12:14: error: 'm' is a private member of 'A::Q'
/tmp/testfile_k23568.h:1:36: note: implicitly declared private here
/tmp/testfile_k23568.cpp:14:14: error: 'm' is a private member of 'B::Q'
/tmp/testfile_k23568.h:1:36: note: implicitly declared private here
```
parent 306a2a04
......@@ -1203,7 +1203,7 @@ void TestDUChain::testReparseChangeEnvironment()
void TestDUChain::testMacroDependentHeader()
{
TestFile header(QStringLiteral("struct MY_CLASS { class Q{Q(); int m;}; int m; };\n"), QStringLiteral("h"));
TestFile header(QStringLiteral("struct MY_CLASS { struct Q{Q(); int m;}; int m; };\n"), QStringLiteral("h"));
TestFile impl("#define MY_CLASS A\n"
"#include \"" + header.url().str() + "\"\n"
"#undef MY_CLASS\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