[cfe-commits] r173393 - /cfe/trunk/test/Lexer/counter.c
Dmitri Gribenko
gribozavr at gmail.com
Thu Jan 24 15:44:04 PST 2013
Author: gribozavr
Date: Thu Jan 24 17:44:04 2013
New Revision: 173393
URL: http://llvm.org/viewvc/llvm-project?rev=173393&view=rev
Log:
FileCheck'ize test
Modified:
cfe/trunk/test/Lexer/counter.c
Modified: cfe/trunk/test/Lexer/counter.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Lexer/counter.c?rev=173393&r1=173392&r2=173393&view=diff
==============================================================================
--- cfe/trunk/test/Lexer/counter.c (original)
+++ cfe/trunk/test/Lexer/counter.c Thu Jan 24 17:44:04 2013
@@ -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
+
More information about the cfe-commits
mailing list