[cfe-commits] r173717 - FileCheck'ize a test
Dmitri Gribenko
gribozavr at gmail.com
Mon Jan 28 13:04:30 PST 2013
Author: gribozavr
Date: Mon Jan 28 15:04:29 2013
New Revision: 173717
URL: http://llvm.org/viewvc/llvm-project?rev=173717&view=rev
Log:
FileCheck'ize a test
Modified:
cfe/trunk/test/Preprocessor/builtin_line.c
Modified: cfe/trunk/test/Preprocessor/builtin_line.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Preprocessor/builtin_line.c?rev=173717&r1=173716&r2=173717&view=diff
==============================================================================
--- cfe/trunk/test/Preprocessor/builtin_line.c (original)
+++ cfe/trunk/test/Preprocessor/builtin_line.c Mon Jan 28 15:04:29 2013
@@ -1,13 +1,15 @@
-// RUN: %clang_cc1 %s -E | grep "^ 4"
+// RUN: %clang_cc1 -E %s | FileCheck --strict-whitespace %s
#define FOO __LINE__
FOO
+// CHECK: {{^}} 4{{$}}
// PR3579 - This should expand to the __LINE__ of the ')' not of the X.
-// RUN: %clang_cc1 %s -E | grep "^A 13"
#define X() __LINE__
A X(
)
+// CHECK: {{^}}A 13{{$}}
+
More information about the cfe-commits
mailing list