[cfe-commits] r90733 - /cfe/trunk/test/Preprocessor/dump_macros.c
Chris Lattner
sabre at nondot.org
Sun Dec 6 17:49:36 PST 2009
Author: lattner
Date: Sun Dec 6 19:49:36 2009
New Revision: 90733
URL: http://llvm.org/viewvc/llvm-project?rev=90733&view=rev
Log:
filecheckize
Modified:
cfe/trunk/test/Preprocessor/dump_macros.c
Modified: cfe/trunk/test/Preprocessor/dump_macros.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Preprocessor/dump_macros.c?rev=90733&r1=90732&r2=90733&view=diff
==============================================================================
--- cfe/trunk/test/Preprocessor/dump_macros.c (original)
+++ cfe/trunk/test/Preprocessor/dump_macros.c Sun Dec 6 19:49:36 2009
@@ -1,30 +1,29 @@
-// RUN: clang-cc -E -dM %s -o %t
+// RUN: clang-cc -E -dM %s -o - | FileCheck %s -strict-whitespace
-// Space even without expansion tokens
-// RUN: grep "#define A(x) " %t
+// Space at end even without expansion tokens
+// CHECK: {{#define A[(]x[)] $}}
#define A(x)
// Space before expansion list.
-// RUN: grep "#define B(x,y) x y" %t
+// CHECK: {{#define B[(]x,y[)] x y$}}
#define B(x,y)x y
-// No space in expansion list.
-// RUN: grep "#define C(x,y) x y" %t
+// No space in argument list.
+// CHECK: #define C(x,y) x y
#define C(x, y) x y
// No paste avoidance.
-// RUN: grep "#define X() .." %t
+// CHECK: #define X() ..
#define X() ..
// Simple test.
-// RUN: grep "#define Y ." %t
-// RUN: grep "#define Z X()Y" %t
+// CHECK: #define Y .
+// CHECK: #define Z X()Y
#define Y .
#define Z X()Y
// gcc prints macros at end of translation unit, so last one wins.
-// RUN: grep "#define foo 2" %t
-// RUN: not grep "#define foo 1" %t
+// CHECK: #define foo 2
#define foo 1
#undef foo
#define foo 2
More information about the cfe-commits
mailing list