aboutsummaryrefslogtreecommitdiff
path: root/test/SemaCXX/cxx11-gnu-attrs.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'test/SemaCXX/cxx11-gnu-attrs.cpp')
-rw-r--r--test/SemaCXX/cxx11-gnu-attrs.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/SemaCXX/cxx11-gnu-attrs.cpp b/test/SemaCXX/cxx11-gnu-attrs.cpp
index a9fcee3da3..def83a94ea 100644
--- a/test/SemaCXX/cxx11-gnu-attrs.cpp
+++ b/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}}