aboutsummaryrefslogtreecommitdiff
path: root/test/Preprocessor/macro_expand.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/Preprocessor/macro_expand.c')
-rw-r--r--test/Preprocessor/macro_expand.c13
1 files changed, 11 insertions, 2 deletions
diff --git a/test/Preprocessor/macro_expand.c b/test/Preprocessor/macro_expand.c
index a7a80aff42..c2c76bddbf 100644
--- a/test/Preprocessor/macro_expand.c
+++ b/test/Preprocessor/macro_expand.c
@@ -1,7 +1,16 @@
-// RUN: clang-cc -E %s | grep '^Y$'
+// RUN: clang-cc -E %s | grep '^A: Y$' &&
+// RUN: clang-cc -E %s | grep '^B: f()$' &&
+// RUN: clang-cc -E %s | grep '^C: for()$'
#define X() Y
#define Y() X
-X()()()
+A: X()()()
+
+// PR3927
+#define f(x) h(x
+#define for(x) h(x
+#define h(x) x()
+B: f(f))
+C: for(for))