FileCheck'ize tests

llvm-svn: 173484
This commit is contained in:
Dmitri Gribenko 2013-01-25 20:34:08 +00:00
parent eb19a95322
commit f079de0a08
2 changed files with 11 additions and 6 deletions

View File

@ -1,7 +1,10 @@
// The 1 and # should not go on the same line.
// RUN: %clang_cc1 %s -E | not grep "1 #"
// RUN: %clang_cc1 %s -E | grep '^1$'
// RUN: %clang_cc1 %s -E | grep '^ #$'
// RUN: %clang_cc1 -E %s | FileCheck --strict-whitespace %s
// CHECK-NOT: 1{{.*}}#
// CHECK: {{^1$}}
// CHECK-NOT: 1{{.*}}#
// CHECK: {{^ #$}}
// CHECK-NOT: 1{{.*}}#
1
#define EMPTY
EMPTY #

View File

@ -1,11 +1,10 @@
// RUN: %clang_cc1 -E %s | grep '^A: Y$'
// RUN: %clang_cc1 -E %s | grep '^B: f()$'
// RUN: %clang_cc1 -E %s | grep '^C: for()$'
// RUN: %clang_cc1 -E %s | FileCheck --strict-whitespace %s
#define X() Y
#define Y() X
A: X()()()
// CHECK: {{^}}A: Y{{$}}
// PR3927
#define f(x) h(x
@ -14,6 +13,9 @@ A: X()()()
B: f(f))
C: for(for))
// CHECK: {{^}}B: f(){{$}}
// CHECK: {{^}}C: for(){{$}}
// rdar://6880648
#define f(x,y...) y
f()