summaryrefslogtreecommitdiffstats
path: root/clang/test
diff options
context:
space:
mode:
authorEli Friedman <eli.friedman@gmail.com>2012-11-02 01:40:23 +0000
committerEli Friedman <eli.friedman@gmail.com>2012-11-02 01:40:23 +0000
commit8f88f06dd2d675171ad40bfccb0f4a9796a5f2fb (patch)
treec209f0b0a3b9bf251b2d7d5a139ee62eafb5b5fd /clang/test
parent0d0355abfca92056d783f850128ddf1c066fc414 (diff)
downloadbcm5719-llvm-8f88f06dd2d675171ad40bfccb0f4a9796a5f2fb.tar.gz
bcm5719-llvm-8f88f06dd2d675171ad40bfccb0f4a9796a5f2fb.zip
Tweak wording and add diagnostic groups to misc diagnostics.
llvm-svn: 167274
Diffstat (limited to 'clang/test')
-rw-r--r--clang/test/Misc/warning-flags.c2
-rw-r--r--clang/test/Sema/builtins.c2
-rw-r--r--clang/test/Sema/cast-to-union.c6
-rw-r--r--clang/test/Sema/exprs.c2
4 files changed, 6 insertions, 6 deletions
diff --git a/clang/test/Misc/warning-flags.c b/clang/test/Misc/warning-flags.c
index c29f495bac1..721bc3d7889 100644
--- a/clang/test/Misc/warning-flags.c
+++ b/clang/test/Misc/warning-flags.c
@@ -173,4 +173,4 @@ CHECK-NEXT: warn_weak_import
The list of warnings in -Wpedantic should NEVER grow.
-CHECK: Number in -Wpedantic (not covered by other -W flags): 37
+CHECK: Number in -Wpedantic (not covered by other -W flags): 29
diff --git a/clang/test/Sema/builtins.c b/clang/test/Sema/builtins.c
index 357b7b6aa07..e3b3b7e8317 100644
--- a/clang/test/Sema/builtins.c
+++ b/clang/test/Sema/builtins.c
@@ -40,7 +40,7 @@ void test9(short v) {
old = __sync_fetch_and_add(); // expected-error {{too few arguments to function call}}
old = __sync_fetch_and_add(&old); // expected-error {{too few arguments to function call}}
- old = __sync_fetch_and_add((unsigned*)0, 42i); // expected-warning {{imaginary constants are an extension}}
+ old = __sync_fetch_and_add((unsigned*)0, 42i); // expected-warning {{imaginary constants are a GNU extension}}
// PR7600: Pointers are implicitly casted to integers and back.
void *old_ptr = __sync_val_compare_and_swap((void**)0, 0, 0);
diff --git a/clang/test/Sema/cast-to-union.c b/clang/test/Sema/cast-to-union.c
index c32964dfc0d..7b995e3d0cb 100644
--- a/clang/test/Sema/cast-to-union.c
+++ b/clang/test/Sema/cast-to-union.c
@@ -4,16 +4,16 @@ union u { int i; unsigned : 3; };
void f(union u);
void test(int x) {
- f((union u)x); // expected-warning {{C99 forbids casts to union type}}
+ f((union u)x); // expected-warning {{cast to union type is a GNU extension}}
f((union u)&x); // expected-error {{cast to union type from type 'int *' not present in union}}
f((union u)2U); // expected-error {{cast to union type from type 'unsigned int' not present in union}}
}
-union u w = (union u)2; // expected-warning {{C99 forbids casts to union type}}
+union u w = (union u)2; // expected-warning {{cast to union type is a GNU extension}}
union u ww = (union u)1.0; // expected-error{{cast to union type from type 'double' not present in union}}
union u x = 7; // expected-error{{initializing 'union u' with an expression of incompatible type 'int'}}
int i;
-union u zz = (union u)i; // expected-error{{initializer element is not a compile-time constant}} expected-warning {{C99 forbids casts to union type}}
+union u zz = (union u)i; // expected-error{{initializer element is not a compile-time constant}} expected-warning {{cast to union type is a GNU extension}}
struct s {int a, b;};
struct s y = { 1, 5 };
diff --git a/clang/test/Sema/exprs.c b/clang/test/Sema/exprs.c
index a93e12ec390..df3e25857c4 100644
--- a/clang/test/Sema/exprs.c
+++ b/clang/test/Sema/exprs.c
@@ -40,7 +40,7 @@ _Complex double test1() {
}
_Complex double test2() {
- return 1.0if; // expected-warning {{imaginary constants are an extension}}
+ return 1.0if; // expected-warning {{imaginary constants are a GNU extension}}
}
// rdar://6097308
OpenPOWER on IntegriCloud