diff options
author | Richard Smith <richard-llvm@metafoo.co.uk> | 2013-01-29 10:02:16 +0000 |
---|---|---|
committer | Richard Smith <richard-llvm@metafoo.co.uk> | 2013-01-29 10:02:16 +0000 |
commit | 810ad3eb447e663984a79553e3c756a04ae7c418 (patch) | |
tree | 9dc1e5bde026df9bc3da7c84f451169fe49e1603 /clang/test/SemaCXX/cxx11-gnu-attrs.cpp | |
parent | 6a217e1815a8f88506d1d4a2bf3a941014b84193 (diff) | |
download | bcm5719-llvm-810ad3eb447e663984a79553e3c756a04ae7c418.tar.gz bcm5719-llvm-810ad3eb447e663984a79553e3c756a04ae7c418.zip |
Downgrade 'attribute ignored when parsing type' from error to warning, to match
the diagnostic's warn_ name. Switch some places (notably C++11 attributes)
which really wanted an error over to a different diagnostic. Finally, suppress
the diagnostic entirely for __ptr32, __ptr64 and __w64, to avoid producing
diagnostics in important system headers.
llvm-svn: 173788
Diffstat (limited to 'clang/test/SemaCXX/cxx11-gnu-attrs.cpp')
-rw-r--r-- | clang/test/SemaCXX/cxx11-gnu-attrs.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/test/SemaCXX/cxx11-gnu-attrs.cpp b/clang/test/SemaCXX/cxx11-gnu-attrs.cpp index a9fcee3da3f..def83a94ea2 100644 --- a/clang/test/SemaCXX/cxx11-gnu-attrs.cpp +++ b/clang/test/SemaCXX/cxx11-gnu-attrs.cpp @@ -5,7 +5,7 @@ [[gnu::this_attribute_does_not_exist]] int unknown_attr; // expected-warning@-1 {{unknown attribute 'this_attribute_does_not_exist' ignored}} int [[gnu::unused]] attr_on_type; -// expected-warning@-1 {{attribute 'unused' ignored, because it is not attached to a declaration}} +// expected-error@-1 {{'unused' attribute cannot be applied to types}} int *[[gnu::unused]] attr_on_ptr; // expected-warning@-1 {{attribute 'unused' ignored, because it cannot be applied to a type}} |