diff options
Diffstat (limited to 'test/Preprocessor')
100 files changed, 189 insertions, 188 deletions
diff --git a/test/Preprocessor/_Pragma-dependency.c b/test/Preprocessor/_Pragma-dependency.c index 837f31d07c..da1d87f741 100644 --- a/test/Preprocessor/_Pragma-dependency.c +++ b/test/Preprocessor/_Pragma-dependency.c @@ -1,5 +1,5 @@ -// RUN: clang %s -E 2>&1 | grep 'DO_PRAGMA (STR' && -// RUN: clang %s -E 2>&1 | grep '7:3' +// RUN: clang-cc %s -E 2>&1 | grep 'DO_PRAGMA (STR' && +// RUN: clang-cc %s -E 2>&1 | grep '7:3' #define DO_PRAGMA _Pragma #define STR "GCC dependency \"parse.y\"") diff --git a/test/Preprocessor/_Pragma-location.c b/test/Preprocessor/_Pragma-location.c index 152e71ac13..61cadfbb8a 100644 --- a/test/Preprocessor/_Pragma-location.c +++ b/test/Preprocessor/_Pragma-location.c @@ -1,4 +1,4 @@ -// RUN: clang %s -E | not grep 'scratch space' +// RUN: clang-cc %s -E | not grep 'scratch space' #define push _Pragma ("pack(push)") push diff --git a/test/Preprocessor/_Pragma-physloc.c b/test/Preprocessor/_Pragma-physloc.c index b8f5499c7a..8737949167 100644 --- a/test/Preprocessor/_Pragma-physloc.c +++ b/test/Preprocessor/_Pragma-physloc.c @@ -1,5 +1,5 @@ -// RUN: clang %s -E | grep '#pragma x y z' && -// RUN: clang %s -E | grep '#pragma a b c' +// RUN: clang-cc %s -E | grep '#pragma x y z' && +// RUN: clang-cc %s -E | grep '#pragma a b c' _Pragma("x y z") _Pragma("a b c") diff --git a/test/Preprocessor/_Pragma-poison.c b/test/Preprocessor/_Pragma-poison.c index 82a7fbecc2..742f88532e 100644 --- a/test/Preprocessor/_Pragma-poison.c +++ b/test/Preprocessor/_Pragma-poison.c @@ -1,5 +1,5 @@ -// RUN: clang -Eonly %s 2>&1 | grep error | wc -l | grep 1 && -// RUN: clang -Eonly %s 2>&1 | grep 7:4 | wc -l | grep 1 +// RUN: clang-cc -Eonly %s 2>&1 | grep error | wc -l | grep 1 && +// RUN: clang-cc -Eonly %s 2>&1 | grep 7:4 | wc -l | grep 1 #define BAR _Pragma ("GCC poison XYZW") XYZW /*NO ERROR*/ XYZW // NO ERROR diff --git a/test/Preprocessor/_Pragma-syshdr.c b/test/Preprocessor/_Pragma-syshdr.c index 4d2d29e023..44eda5f0b9 100644 --- a/test/Preprocessor/_Pragma-syshdr.c +++ b/test/Preprocessor/_Pragma-syshdr.c @@ -1,4 +1,4 @@ -// RUN: clang %s -E 2>&1 | grep 'system_header ignored in main file' +// RUN: clang-cc %s -E 2>&1 | grep 'system_header ignored in main file' _Pragma ("GCC system_header") diff --git a/test/Preprocessor/_Pragma-syshdr2.c b/test/Preprocessor/_Pragma-syshdr2.c index 190e5a7a30..de7f2d3dc3 100644 --- a/test/Preprocessor/_Pragma-syshdr2.c +++ b/test/Preprocessor/_Pragma-syshdr2.c @@ -1,4 +1,4 @@ -// RUN: clang -E %s 2>&1 | grep 'file not found' +// RUN: clang-cc -E %s 2>&1 | grep 'file not found' #define DO_PRAGMA _Pragma DO_PRAGMA ("GCC dependency \"blahblabh\"") diff --git a/test/Preprocessor/assembler-with-cpp.c b/test/Preprocessor/assembler-with-cpp.c index ecb77e5f96..7a2830b324 100644 --- a/test/Preprocessor/assembler-with-cpp.c +++ b/test/Preprocessor/assembler-with-cpp.c @@ -1,4 +1,4 @@ -// RUN: clang -x assembler-with-cpp -E %s > %t && +// RUN: clang-cc -x assembler-with-cpp -E %s > %t && #ifndef __ASSEMBLER__ #error "__ASSEMBLER__ not defined" diff --git a/test/Preprocessor/builtin_line.c b/test/Preprocessor/builtin_line.c index 7698d5f43c..db01e47995 100644 --- a/test/Preprocessor/builtin_line.c +++ b/test/Preprocessor/builtin_line.c @@ -1,10 +1,10 @@ -// RUN: clang %s -E | grep "^ 4" && +// RUN: clang-cc %s -E | grep "^ 4" && #define FOO __LINE__ FOO // PR3579 - This should expand to the __LINE__ of the ')' not of the X. -// RUN: clang %s -E | grep "^A 13" +// RUN: clang-cc %s -E | grep "^A 13" #define X() __LINE__ diff --git a/test/Preprocessor/c99-6_10_3_3_p4.c b/test/Preprocessor/c99-6_10_3_3_p4.c index 13d5661e36..89660549b9 100644 --- a/test/Preprocessor/c99-6_10_3_3_p4.c +++ b/test/Preprocessor/c99-6_10_3_3_p4.c @@ -1,4 +1,4 @@ -// RUN: clang -E %s | grep -F 'char p[] = "x ## y";' +// RUN: clang-cc -E %s | grep -F 'char p[] = "x ## y";' #define hash_hash # ## # #define mkstr(a) # a #define in_between(a) mkstr(a) diff --git a/test/Preprocessor/c99-6_10_3_4_p5.c b/test/Preprocessor/c99-6_10_3_4_p5.c index fa5f7358b9..22bdf8258c 100644 --- a/test/Preprocessor/c99-6_10_3_4_p5.c +++ b/test/Preprocessor/c99-6_10_3_4_p5.c @@ -1,9 +1,9 @@ // Example from C99 6.10.3.4p5 -// RUN: clang -E %s | grep -F 'f(2 * (y+1)) + f(2 * (f(2 * (z[0])))) % f(2 * (0)) + t(1);' && -// RUN: clang -E %s | grep -F 'f(2 * (2 +(3,4)-0,1)) | f(2 * (~ 5)) & f(2 * (0,1))^m(0,1);' && -// RUN: clang -E %s | grep -F 'int i[] = { 1, 23, 4, 5, };' && -// RUN: clang -E %s | grep -F 'char c[2][6] = { "hello", "" };' +// RUN: clang-cc -E %s | grep -F 'f(2 * (y+1)) + f(2 * (f(2 * (z[0])))) % f(2 * (0)) + t(1);' && +// RUN: clang-cc -E %s | grep -F 'f(2 * (2 +(3,4)-0,1)) | f(2 * (~ 5)) & f(2 * (0,1))^m(0,1);' && +// RUN: clang-cc -E %s | grep -F 'int i[] = { 1, 23, 4, 5, };' && +// RUN: clang-cc -E %s | grep -F 'char c[2][6] = { "hello", "" };' #define x 3 diff --git a/test/Preprocessor/c99-6_10_3_4_p6.c b/test/Preprocessor/c99-6_10_3_4_p6.c index ce7990a4cf..c48d2efd2e 100644 --- a/test/Preprocessor/c99-6_10_3_4_p6.c +++ b/test/Preprocessor/c99-6_10_3_4_p6.c @@ -1,10 +1,10 @@ // Example from C99 6.10.3.4p6 -// RUN: clang -E %s | grep -F 'printf("x" "1" "= %d, x" "2" "= s" x1, x2);' && -// RUN: clang -E %s | grep 'fputs("strncmp(\\"abc\\\\0d\\" \\"abc\\", .\\\\4.) == 0" ": @\\n", s);' && -// RUN: clang -E %s | grep -F 'include "vers2.h"' && -// RUN: clang -E %s | grep -F '"hello";' && -// RUN: clang -E %s | grep -F '"hello" ", world"' +// RUN: clang-cc -E %s | grep -F 'printf("x" "1" "= %d, x" "2" "= s" x1, x2);' && +// RUN: clang-cc -E %s | grep 'fputs("strncmp(\\"abc\\\\0d\\" \\"abc\\", .\\\\4.) == 0" ": @\\n", s);' && +// RUN: clang-cc -E %s | grep -F 'include "vers2.h"' && +// RUN: clang-cc -E %s | grep -F '"hello";' && +// RUN: clang-cc -E %s | grep -F '"hello" ", world"' #define str(s) # s #define xstr(s) str(s) diff --git a/test/Preprocessor/c99-6_10_3_4_p7.c b/test/Preprocessor/c99-6_10_3_4_p7.c index 88957dfb67..a53df8263f 100644 --- a/test/Preprocessor/c99-6_10_3_4_p7.c +++ b/test/Preprocessor/c99-6_10_3_4_p7.c @@ -1,7 +1,7 @@ // Example from C99 6.10.3.4p7 -// RUN: clang -E %s | grep -F 'int j[] = { 123, 45, 67, 89,' && -// RUN: clang -E %s | grep -F '10, 11, 12, };' +// RUN: clang-cc -E %s | grep -F 'int j[] = { 123, 45, 67, 89,' && +// RUN: clang-cc -E %s | grep -F '10, 11, 12, };' #define t(x,y,z) x ## y ## z int j[] = { t(1,2,3), t(,4,5), t(6,,7), t(8,9,), diff --git a/test/Preprocessor/c99-6_10_3_4_p9.c b/test/Preprocessor/c99-6_10_3_4_p9.c index 08b4637e0e..39c34546ad 100644 --- a/test/Preprocessor/c99-6_10_3_4_p9.c +++ b/test/Preprocessor/c99-6_10_3_4_p9.c @@ -1,9 +1,9 @@ // Example from C99 6.10.3.4p9 -// RUN: clang -E %s | grep -F 'fprintf(stderr, "Flag");' && -// RUN: clang -E %s | grep -F 'fprintf(stderr, "X = %d\n", x);' && -// RUN: clang -E %s | grep -F 'puts("The first, second, and third items.");' && -// RUN: clang -E %s | grep -F '((x>y)?puts("x>y"): printf("x is %d but y is %d", x, y));' +// RUN: clang-cc -E %s | grep -F 'fprintf(stderr, "Flag");' && +// RUN: clang-cc -E %s | grep -F 'fprintf(stderr, "X = %d\n", x);' && +// RUN: clang-cc -E %s | grep -F 'puts("The first, second, and third items.");' && +// RUN: clang-cc -E %s | grep -F '((x>y)?puts("x>y"): printf("x is %d but y is %d", x, y));' #define debug(...) fprintf(stderr, __VA_ARGS__) #define showlist(...) puts(#__VA_ARGS__) diff --git a/test/Preprocessor/clang_headers.c b/test/Preprocessor/clang_headers.c |