Add test
This commit is contained in:
parent
19d4ab7d31
commit
39d60ca63e
|
@ -6944,6 +6944,13 @@ private:
|
||||||
"};\n"),
|
"};\n"),
|
||||||
InternalError,
|
InternalError,
|
||||||
"There is an unknown macro here somewhere. Configuration is required. If Q_SLOTS is a macro then please configure it.");
|
"There is an unknown macro here somewhere. Configuration is required. If Q_SLOTS is a macro then please configure it.");
|
||||||
|
ASSERT_THROW_EQUALS(tokenizeAndStringify("class C : public QObject {\n"
|
||||||
|
" struct S { static void g() {} };\n"
|
||||||
|
"private slots:\n"
|
||||||
|
" void f() { S::g(); }\n"
|
||||||
|
"};\n"),
|
||||||
|
InternalError,
|
||||||
|
"There is an unknown macro here somewhere. Configuration is required. If slots is a macro then please configure it.");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue