diff options
Diffstat (limited to 'clang/test/Sema')
-rw-r--r-- | clang/test/Sema/builtins.c | 2 | ||||
-rw-r--r-- | clang/test/Sema/constant-builtins.c | 2 | ||||
-rw-r--r-- | clang/test/Sema/exprs.c | 10 | ||||
-rw-r--r-- | clang/test/Sema/function.c | 4 | ||||
-rw-r--r-- | clang/test/Sema/i-c-e.c | 6 |
5 files changed, 12 insertions, 12 deletions
diff --git a/clang/test/Sema/builtins.c b/clang/test/Sema/builtins.c index 0781abc7b9e..ce7c3484fd8 100644 --- a/clang/test/Sema/builtins.c +++ b/clang/test/Sema/builtins.c @@ -32,7 +32,7 @@ void cfstring() { } -typedef __attribute__(( ext_vector_type(16) )) unsigned char uchar16; // expected-warning {{extension}} +typedef __attribute__(( ext_vector_type(16) )) unsigned char uchar16; // rdar://5905347 unsigned char foo( short v ) { diff --git a/clang/test/Sema/constant-builtins.c b/clang/test/Sema/constant-builtins.c index 3914641751d..f8cea33d676 100644 --- a/clang/test/Sema/constant-builtins.c +++ b/clang/test/Sema/constant-builtins.c @@ -13,7 +13,7 @@ long double g5 = __builtin_infl(); extern int f(); -int h0 = __builtin_types_compatible_p(int,float); // expected-warning {{extension}} +int h0 = __builtin_types_compatible_p(int,float); //int h1 = __builtin_choose_expr(1, 10, f()); //int h2 = __builtin_expect(0, 0); diff --git a/clang/test/Sema/exprs.c b/clang/test/Sema/exprs.c index d92141ce1df..f85e2fc4141 100644 --- a/clang/test/Sema/exprs.c +++ b/clang/test/Sema/exprs.c @@ -51,7 +51,7 @@ void test7(int *P, _Complex float Gamma) { // rdar://6095061 int test8(void) { int i; - __builtin_choose_expr (0, 42, i) = 10; // expected-warning {{extension used}} + __builtin_choose_expr (0, 42, i) = 10; return i; } @@ -60,8 +60,8 @@ int test8(void) { struct f { int x : 4; float y[]; }; int test9(struct f *P) { int R; - R = __alignof(P->x); // expected-error {{invalid application of '__alignof' to bitfield}} expected-warning {{extension used}} - R = __alignof(P->y); // ok. expected-warning {{extension used}} + R = __alignof(P->x); // expected-error {{invalid application of '__alignof' to bitfield}} + R = __alignof(P->y); // ok. R = sizeof(P->x); // expected-error {{invalid application of 'sizeof' to bitfield}} return R; } @@ -98,8 +98,8 @@ void test13( // rdar://6326239 - Vector comparisons are not fully trusted yet, until the // backend is known to work, just unconditionally reject them. void test14() { - typedef long long __m64 __attribute__((__vector_size__(8))); // expected-warning {{extension used}} - typedef short __v4hi __attribute__((__vector_size__(8))); // expected-warning {{extension used}} + typedef long long __m64 __attribute__((__vector_size__(8))); + typedef short __v4hi __attribute__((__vector_size__(8))); __v4hi a; __m64 mask = (__m64)((__v4hi)a > // expected-error {{comparison of vector types ('__v4hi' and '__v4hi') not supported yet}} diff --git a/clang/test/Sema/function.c b/clang/test/Sema/function.c index 8b5c8572076..c9d8630c47f 100644 --- a/clang/test/Sema/function.c +++ b/clang/test/Sema/function.c @@ -64,11 +64,11 @@ struct incomplete_test a(void) {} // expected-error{{incomplete result type 'str extern __inline -__attribute__((__gnu_inline__)) // expected-warning{{extension used}} +__attribute__((__gnu_inline__)) void gnu_inline1() {} void -__attribute__((__gnu_inline__)) // expected-warning {{'gnu_inline' attribute requires function to be marked 'inline', attribute ignored}} expected-warning{{extension used}} +__attribute__((__gnu_inline__)) // expected-warning {{'gnu_inline' attribute requires function to be marked 'inline', attribute ignored}} gnu_inline2() {} diff --git a/clang/test/Sema/i-c-e.c b/clang/test/Sema/i-c-e.c index 6afe035e1cf..de279669922 100644 --- a/clang/test/Sema/i-c-e.c +++ b/clang/test/Sema/i-c-e.c @@ -61,6 +61,6 @@ int illegaldiv1[1 || 1/0]; int illegaldiv2[1/0]; // expected-error {{variable length array declaration not allowed at file scope}} int illegaldiv3[INT_MIN / -1]; // expected-error {{variable length array declaration not allowed at file scope}} -int chooseexpr[__builtin_choose_expr(1, 1, expr)]; // expected-warning {{extension used}} -int realop[(__real__ 4) == 4 ? 1 : -1]; // expected-warning {{extension used}} -int imagop[(__imag__ 4) == 0 ? 1 : -1]; // expected-warning {{extension used}} +int chooseexpr[__builtin_choose_expr(1, 1, expr)]; +int realop[(__real__ 4) == 4 ? 1 : -1]; +int imagop[(__imag__ 4) == 0 ? 1 : -1]; |