aboutsummaryrefslogtreecommitdiff
path: root/test/Lexer/counter.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/Lexer/counter.c')
-rw-r--r--test/Lexer/counter.c13
1 files changed, 7 insertions, 6 deletions
diff --git a/test/Lexer/counter.c b/test/Lexer/counter.c
index 21737300228d..70ac98e727d5 100644
--- a/test/Lexer/counter.c
+++ b/test/Lexer/counter.c
@@ -1,16 +1,17 @@
// __COUNTER__ support: rdar://4329310
-// RUN: %clang -E %s > %t
+// RUN: %clang -E %s | FileCheck %s
#define PASTE2(x,y) x##y
#define PASTE1(x,y) PASTE2(x,y)
#define UNIQUE(x) PASTE1(x,__COUNTER__)
-// RUN: grep "A: 0" %t
A: __COUNTER__
-
-// RUN: grep "B: foo1" %t
B: UNIQUE(foo);
-// RUN: grep "C: foo2" %t
C: UNIQUE(foo);
-// RUN: grep "D: 3" %t
D: __COUNTER__
+
+// CHECK: A: 0
+// CHECK: B: foo1;
+// CHECK: C: foo2;
+// CHECK: D: 3
+