diff options
author | David Majnemer <david.majnemer@gmail.com> | 2015-01-03 19:41:00 +0000 |
---|---|---|
committer | David Majnemer <david.majnemer@gmail.com> | 2015-01-03 19:41:00 +0000 |
commit | 22fe771f78c957e0c1a2f28e31f7129497a3915f (patch) | |
tree | dd8f7541c7be8a4800178268510bace368c80a0b /clang/test/Parser/cxx-attributes.cpp | |
parent | 5772566ed66f8c4c09dcda81e96eb11a303b2140 (diff) | |
download | bcm5719-llvm-22fe771f78c957e0c1a2f28e31f7129497a3915f.tar.gz bcm5719-llvm-22fe771f78c957e0c1a2f28e31f7129497a3915f.zip |
Parse: __attribute__((keyword)) shouldn't error
Weird constructs like __attribute__((inline)) or
__attibute__((typename)) should result in warnings, not errors.
llvm-svn: 225118
Diffstat (limited to 'clang/test/Parser/cxx-attributes.cpp')
-rw-r--r-- | clang/test/Parser/cxx-attributes.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/test/Parser/cxx-attributes.cpp b/clang/test/Parser/cxx-attributes.cpp index 8cba5bc2a17..6591532a91a 100644 --- a/clang/test/Parser/cxx-attributes.cpp +++ b/clang/test/Parser/cxx-attributes.cpp @@ -21,4 +21,4 @@ namespace PR17666 { typedef int __attribute__((aligned(int))) T2; // expected-error {{expected '(' for function-style cast}} } -__attribute((typename)) int x; // expected-error {{expected ')'}} +__attribute((typename)) int x; // expected-warning {{unknown attribute 'typename' ignored}} |