summaryrefslogtreecommitdiff
path: root/tests/auto/cplusplus/preprocessor/data/empty-macro.2.cpp
diff options
context:
space:
mode:
authorErik Verbruggen <erik.verbruggen@nokia.com>2012-03-26 15:18:01 +0200
committerErik Verbruggen <erik.verbruggen@nokia.com>2012-03-29 14:28:17 +0200
commit60db5736604583fe99dde3c25412d97f9b77489d (patch)
tree2f5bf1342086232de0570500fd440a98eb12cb96 /tests/auto/cplusplus/preprocessor/data/empty-macro.2.cpp
parent159058d9eb7ab233f94cc6a0a5b0e7e8f691a041 (diff)
downloadqt-creator-60db5736604583fe99dde3c25412d97f9b77489d.tar.gz
[C++] Rewrite of the preprocessor.
This rewrite fixes a couple of issues with the pre-processor. It now supports: - macros in macro bodies - stringification of parameters [cpp.stringize] - the concatenation operator [cpp.concat] - #include MACRO_HERE - defined() inside macro bodies used in pp-conditions. Change-Id: Ifdb78041fb6afadf44f939a4bd66ce2832b8601f Reviewed-by: Roberto Raggi <roberto.raggi@nokia.com>
Diffstat (limited to 'tests/auto/cplusplus/preprocessor/data/empty-macro.2.cpp')
-rw-r--r--tests/auto/cplusplus/preprocessor/data/empty-macro.2.cpp13
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/auto/cplusplus/preprocessor/data/empty-macro.2.cpp b/tests/auto/cplusplus/preprocessor/data/empty-macro.2.cpp
new file mode 100644
index 0000000000..389eef523c
--- /dev/null
+++ b/tests/auto/cplusplus/preprocessor/data/empty-macro.2.cpp
@@ -0,0 +1,13 @@
+#define Q_DECL_EQ_DELETE
+#define Q_DISABLE_COPY(Class) \
+ Class(const Class &) Q_DECL_EQ_DELETE;\
+ Class &operator=(const Class &) Q_DECL_EQ_DELETE;
+
+class Test {
+private:
+ Q_DISABLE_COPY(Test)
+
+public:
+ Test();
+};
+