summaryrefslogtreecommitdiffstats
path: root/clang/test/Sema/attr-deprecated.c
diff options
context:
space:
mode:
authorChandler Carruth <chandlerc@gmail.com>2010-07-08 09:42:26 +0000
committerChandler Carruth <chandlerc@gmail.com>2010-07-08 09:42:26 +0000
commitdd1bc0f1b5a62c139344003c5e844c198b31557f (patch)
treeb96d26b3eb61a73d1dcc9c8149bc955a7bae9c2f /clang/test/Sema/attr-deprecated.c
parentb69d4ce5f338ece8001fd53ba763f708ad8d6ec5 (diff)
downloadbcm5719-llvm-dd1bc0f1b5a62c139344003c5e844c198b31557f.tar.gz
bcm5719-llvm-dd1bc0f1b5a62c139344003c5e844c198b31557f.zip
Add support for differentiating between attributes ignored when handled and
unknown attributes that we discard. Add a diagnostic group for unknown attribute warnings to allow turning these off when we don't care. Also consolidates the tests for this case. llvm-svn: 107864
Diffstat (limited to 'clang/test/Sema/attr-deprecated.c')
-rw-r--r--clang/test/Sema/attr-deprecated.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/clang/test/Sema/attr-deprecated.c b/clang/test/Sema/attr-deprecated.c
index e723255c0cf..e7c997f3ee2 100644
--- a/clang/test/Sema/attr-deprecated.c
+++ b/clang/test/Sema/attr-deprecated.c
@@ -4,8 +4,6 @@ int f() __attribute__((deprecated));
void g() __attribute__((deprecated));
void g();
-void z() __attribute__((bogusattr)); // expected-warning {{'bogusattr' attribute ignored}}
-
extern int var __attribute__((deprecated));
int a() {
@@ -45,7 +43,7 @@ typedef struct foo foo_dep __attribute__((deprecated));
foo_dep *test2; // expected-warning {{'foo_dep' is deprecated}}
struct bar_dep __attribute__((deprecated,
- invalid_attribute)); // expected-warning {{'invalid_attribute' attribute ignored}}
+ invalid_attribute)); // expected-warning {{unknown attribute 'invalid_attribute' ignored}}
struct bar_dep *test3; // expected-warning {{'bar_dep' is deprecated}}
OpenPOWER on IntegriCloud