diff options
author | Eli Friedman <eli.friedman@gmail.com> | 2011-12-17 00:36:09 +0000 |
---|---|---|
committer | Eli Friedman <eli.friedman@gmail.com> | 2011-12-17 00:36:09 +0000 |
commit | fc038e9ef8ed262724f42597ca5c844de97b1202 (patch) | |
tree | 8da724ad06ccd7e850ec223898f13ed897e10b73 /test/Sema/attr-deprecated.c | |
parent | 85b9e8ca6e157fde1e4526c157979ac49835a5b8 (diff) | |
download | clang-fc038e9ef8ed262724f42597ca5c844de97b1202.tar.gz |
Remove a non-gcc-compatible extension that would apply attributes on declarations without a declarator to structs. Add a warning for ignored attributes. Patch by Michael Han.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@146796 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Sema/attr-deprecated.c')
-rw-r--r-- | test/Sema/attr-deprecated.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/Sema/attr-deprecated.c b/test/Sema/attr-deprecated.c index 86ee80ef06..4760dabc4c 100644 --- a/test/Sema/attr-deprecated.c +++ b/test/Sema/attr-deprecated.c @@ -44,8 +44,8 @@ void test1(struct foo *F) { 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 {{unknown attribute 'invalid_attribute' ignored}} +struct __attribute__((deprecated, + invalid_attribute)) bar_dep ; // expected-warning {{unknown attribute 'invalid_attribute' ignored}} struct bar_dep *test3; // expected-warning {{'bar_dep' is deprecated}} |