diff options
author | John McCall <rjmccall@apple.com> | 2011-10-01 05:17:03 +0000 |
---|---|---|
committer | John McCall <rjmccall@apple.com> | 2011-10-01 05:17:03 +0000 |
commit | e82247a71a1a76e78f3b979b64d5f6412ab40266 (patch) | |
tree | dfe73fd7a7b7b163bee57b7bbadf0a54416dafdb /test/Sema/types.c | |
parent | 130e5efd29a52a7cbd17c7b4a4744a320ee29692 (diff) |
Hey, maybe we shouldn't silently ignore decl attributes
on declarators written as types.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@140931 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Sema/types.c')
-rw-r--r-- | test/Sema/types.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/test/Sema/types.c b/test/Sema/types.c index f3244f7799..33305abe02 100644 --- a/test/Sema/types.c +++ b/test/Sema/types.c @@ -37,3 +37,7 @@ _Decimal32 x; // expected-error {{GNU decimal type extension not supported}} // rdar://6880951 int __attribute__ ((vector_size (8), vector_size (8))) v; // expected-error {{invalid vector element type}} + +void test(int i) { + char c = (char __attribute__((align(8)))) i; // expected-error {{'align' attribute ignored when parsing type}} +} |