diff options
author | Richard Smith <richard-llvm@metafoo.co.uk> | 2011-10-17 21:20:17 +0000 |
---|---|---|
committer | Richard Smith <richard-llvm@metafoo.co.uk> | 2011-10-17 21:20:17 +0000 |
commit | fe0a0fb65f18a8495d97a700ca62fe639ffd85e9 (patch) | |
tree | e7ac6f745bc6a7e0929fd8891725dfe63611055c /test | |
parent | abd2a3e8bc251a693d4d09819fd76f2e482c21ff (diff) |
Refactor __attribute__ parsing, and add a diagnostic if the r_paren at the end
of an attrib is missing. gcc does not allow the closing parenthesis to be omitted.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@142255 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r-- | test/Parser/attributes.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/test/Parser/attributes.c b/test/Parser/attributes.c index b2873638cd..36bd8071ac 100644 --- a/test/Parser/attributes.c +++ b/test/Parser/attributes.c @@ -56,3 +56,8 @@ void d2(void) __attribute__((noreturn)), d3(void) __attribute__((noreturn)); // PR6287 void __attribute__((returns_twice)) returns_twice_test(); + +int aligned(int); +int __attribute__((vec_type_hint(char, aligned(16) )) missing_rparen_1; // expected-error {{expected ')'}} +int __attribute__((mode(x aligned(16) )) missing_rparen_2; // expected-error {{expected ')'}} +int __attribute__((format(printf, 0 aligned(16) )) missing_rparen_3; // expected-error {{expected ')'}} |