summaryrefslogtreecommitdiffstats
path: root/test/Preprocessor/macro_not_define.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/Preprocessor/macro_not_define.c')
-rw-r--r--test/Preprocessor/macro_not_define.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/test/Preprocessor/macro_not_define.c b/test/Preprocessor/macro_not_define.c
new file mode 100644
index 0000000..a42240b
--- /dev/null
+++ b/test/Preprocessor/macro_not_define.c
@@ -0,0 +1,9 @@
+// RUN: clang-cc -E %s | grep '^ # define X 3$'
+
+#define H #
+ #define D define
+
+ #define DEFINE(a, b) H D a b
+
+ DEFINE(X, 3)
+
OpenPOWER on IntegriCloud