diff options
author | Edward O'Callaghan <eocallaghan@auroraux.org> | 2009-10-27 02:36:32 +0000 |
---|---|---|
committer | Edward O'Callaghan <eocallaghan@auroraux.org> | 2009-10-27 02:36:32 +0000 |
commit | b396a37a235b4d11da3520bc981f07419d7fc31b (patch) | |
tree | fa3ecc951c3a096d0d06137afb280d1159b605bd /test/Preprocessor/output_paste_avoid.c | |
parent | cf57d615259debd91b649c939468b2d6be299ebc (diff) |
Convert Preprocessor Clang tests to FileCheck in regards to PR5307.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@85199 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Preprocessor/output_paste_avoid.c')
-rw-r--r-- | test/Preprocessor/output_paste_avoid.c | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/test/Preprocessor/output_paste_avoid.c b/test/Preprocessor/output_paste_avoid.c index ff8afc3e47..4a15094998 100644 --- a/test/Preprocessor/output_paste_avoid.c +++ b/test/Preprocessor/output_paste_avoid.c @@ -1,23 +1,26 @@ -// RUN: clang-cc -E %s -o %t && -// This should print as ".. ." to avoid turning into ... -// RUN: grep -F 'A: . . .' %t && +// RUN: clang-cc -E %s -o %t | FileCheck -strict-whitespace %s + + #define y(a) ..a A: y(.) +// This should print as ".. ." to avoid turning into ... +// CHECK: A: . . . + -// RUN: grep -F 'C: .. .' %t && #define DOT . C: ..DOT +// CHECK: C: .. . -// RUN: grep -F 'D: + + - - + + = = =' %t && #define PLUS + #define EMPTY #define f(x) =x= D: +PLUS -EMPTY- PLUS+ f(=) +// CHECK: D: + + - - + + = = = -// RUN: grep -F 'E: L "str"' %t -// Should expand to L "str" not L"str" #define test(x) L#x E: test(str) +// Should expand to L "str" not L"str" +// CHECK: E: L "str" |