diff options
author | Richard Smith <richard-llvm@metafoo.co.uk> | 2011-12-29 21:57:33 +0000 |
---|---|---|
committer | Richard Smith <richard-llvm@metafoo.co.uk> | 2011-12-29 21:57:33 +0000 |
commit | e434590bd90df6dd0117f8cee2c84716c25ab1c2 (patch) | |
tree | e729bcc69dbff1728d8e3b6b8df53d354fae0121 /clang/test/SemaCXX/c99.cpp | |
parent | 4ea99816eff6e2799ab20eec17630c4ac534db5f (diff) | |
download | bcm5719-llvm-e434590bd90df6dd0117f8cee2c84716c25ab1c2.tar.gz bcm5719-llvm-e434590bd90df6dd0117f8cee2c84716c25ab1c2.zip |
Change the diagnostics which said 'accepted as an extension' to instead say
'is an extension'. The former is inappropriate and confusing when building with
-Werror/-pedantic-errors.
llvm-svn: 147357
Diffstat (limited to 'clang/test/SemaCXX/c99.cpp')
-rw-r--r-- | clang/test/SemaCXX/c99.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/test/SemaCXX/c99.cpp b/clang/test/SemaCXX/c99.cpp index cda069cf47f..13918dcf5ef 100644 --- a/clang/test/SemaCXX/c99.cpp +++ b/clang/test/SemaCXX/c99.cpp @@ -4,6 +4,6 @@ void f1(int i[static 5]) { // expected-error{{C99}} struct Point { int x; int y; }; -Point p1 = { .x = 17, // expected-warning{{designated initializers are a C99 feature, accepted in C++ as an extension}} - y: 25 }; // expected-warning{{designated initializers are a C99 feature, accepted in C++ as an extension}} \ +Point p1 = { .x = 17, // expected-warning{{designated initializers are a C99 feature}} + y: 25 }; // expected-warning{{designated initializers are a C99 feature}} \ // expected-warning{{use of GNU old-style field designator extension}} |