From fc038e9ef8ed262724f42597ca5c844de97b1202 Mon Sep 17 00:00:00 2001 From: Eli Friedman Date: Sat, 17 Dec 2011 00:36:09 +0000 Subject: 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 --- test/Sema/attr-deprecated.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'test/Sema/attr-deprecated.c') 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}} -- cgit v1.2.1