Skip to content
Snippets Groups Projects
Commit 2521d7d6 authored by hjk's avatar hjk Committed by hjk
Browse files

preprocessor: add (failing) test for concatenation


Change-Id: I9d51798cb4d95141d30b0609d03cd1d199088f0a
Reviewed-by: default avatarhjk <qthjk@ovi.com>
parent 051c3351
No related branches found
No related tags found
No related merge requests found
struct QQ {};
#define NN(x) typedef QQ PP ## x;
NN(CC)
typedef PPCC RR;
# 1 "data/poundpound.1.cpp"
struct QQ {};
#gen true
# 3 "data/poundpound.1.cpp"
typedef QQ PPCC;
#gen false
# 7 "data/poundpound.1.cpp"
typedef PPCC RR;
......@@ -683,6 +683,8 @@ void tst_Preprocessor::comparisons_data()
<< "empty-macro.cpp" << "empty-macro.out.cpp" << "";
QTest::newRow("empty-macro 2")
<< "empty-macro.2.cpp" << "empty-macro.2.out.cpp" << "";
QTest::newRow("poundpound 1")
<< "poundpound.1.cpp" << "poundpound.1.out.cpp" << "";
}
void tst_Preprocessor::comparisons()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment