summaryrefslogtreecommitdiffstats
path: root/test/Preprocessor/macro_paste_hashhash.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/Preprocessor/macro_paste_hashhash.c')
-rw-r--r--test/Preprocessor/macro_paste_hashhash.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/test/Preprocessor/macro_paste_hashhash.c b/test/Preprocessor/macro_paste_hashhash.c
index e7993cc..f4b03be 100644
--- a/test/Preprocessor/macro_paste_hashhash.c
+++ b/test/Preprocessor/macro_paste_hashhash.c
@@ -1,7 +1,11 @@
-// RUN: %clang_cc1 -E %s | grep '^"x ## y";$'
+// RUN: %clang_cc1 -E %s | FileCheck %s
#define hash_hash # ## #
#define mkstr(a) # a
#define in_between(a) mkstr(a)
#define join(c, d) in_between(c hash_hash d)
+// CHECK: "x ## y";
join(x, y);
+#define FOO(x) A x B
+// CHECK: A ## B;
+FOO(##);
OpenPOWER on IntegriCloud