aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--test/Preprocessor/macro_fn_disable_expand.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/test/Preprocessor/macro_fn_disable_expand.c b/test/Preprocessor/macro_fn_disable_expand.c
index c3b067dfc9..2c24d696d5 100644
--- a/test/Preprocessor/macro_fn_disable_expand.c
+++ b/test/Preprocessor/macro_fn_disable_expand.c
@@ -1,11 +1,10 @@
-// RUN: clang-cc %s -E | grep 'bar foo (2)'
-// RUN: clang-cc %s -E | grep 'm(ABCD)'
+// RUN: clang-cc %s -E | FileCheck %s
#define foo(x) bar x
foo(foo) (2)
-
+// CHECK: bar foo (2)
#define m(a) a(w)
#define w ABCD
-m(m) // m(ABCD)
-
+m(m)
+// CHECK: m(ABCD)