summaryrefslogtreecommitdiffstats
path: root/tests/auto/tools/moc/parse-defines.h
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto/tools/moc/parse-defines.h')
-rw-r--r--tests/auto/tools/moc/parse-defines.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/auto/tools/moc/parse-defines.h b/tests/auto/tools/moc/parse-defines.h
index 6100bf67ad..7b0fa29d7c 100644
--- a/tests/auto/tools/moc/parse-defines.h
+++ b/tests/auto/tools/moc/parse-defines.h
@@ -146,6 +146,15 @@ signals:
#undef QString
+#ifdef Q_MOC_RUN
+// Normaly, redefining keywords is forbidden, but we should not abort parsing
+#define and &&
+#define and_eq &=
+#define bitand &
+#define true 1
+#undef true
+#endif
+
PD_END_NAMESPACE
#endif