forked from qt-creator/qt-creator
Cleanup testcase.
Change-Id: I3db86fa5df4a2747f4c24e0414279dab59098c54 Reviewed-by: Roberto Raggi <roberto.raggi@nokia.com>
This commit is contained in:
@@ -125,14 +125,17 @@ void tst_Preprocessor::tstst()
|
|||||||
"namespace std _GLIBCXX_VISIBILITY(default) {\n"
|
"namespace std _GLIBCXX_VISIBILITY(default) {\n"
|
||||||
"}\n"
|
"}\n"
|
||||||
));
|
));
|
||||||
|
const QByteArray result =
|
||||||
|
"namespace std \n"
|
||||||
|
"#gen true\n"
|
||||||
|
"# 3 \"<stdin>\"\n"
|
||||||
|
" __attribute__ ((__visibility__ (\"default\")))\n"
|
||||||
|
"#gen false\n"
|
||||||
|
"# 3 \"<stdin>\"\n"
|
||||||
|
" {\n"
|
||||||
|
"}";
|
||||||
|
|
||||||
qDebug() << preprocessed;
|
QVERIFY(preprocessed.contains(result));
|
||||||
|
|
||||||
/*
|
|
||||||
# define _GLIBCXX_VISIBILITY(V) __attribute__ ((__visibility__ (#V)))
|
|
||||||
namespace std _GLIBCXX_VISIBILITY(default)
|
|
||||||
|
|
||||||
*/
|
|
||||||
}
|
}
|
||||||
|
|
||||||
QTEST_APPLESS_MAIN(tst_Preprocessor)
|
QTEST_APPLESS_MAIN(tst_Preprocessor)
|
||||||
|
Reference in New Issue
Block a user