diff options
author | Richard Smith <richard-llvm@metafoo.co.uk> | 2013-01-29 01:48:07 +0000 |
---|---|---|
committer | Richard Smith <richard-llvm@metafoo.co.uk> | 2013-01-29 01:48:07 +0000 |
commit | 33f04a208a1a6e73da73460142327ff05e8c391b (patch) | |
tree | 16cd0515006271d6ff031895f2ff99ed1aad586e /test/Parser/cxx11-stmt-attributes.cpp | |
parent | cda7968b38d76848b4fb24f7cc28ab83835b4ea3 (diff) |
Treat alignas and _Alignas as keyword attributes. This allows us to
pretty-print them properly (modulo the more general badness in alignment
attribute printing).
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@173752 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Parser/cxx11-stmt-attributes.cpp')
-rw-r--r-- | test/Parser/cxx11-stmt-attributes.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/Parser/cxx11-stmt-attributes.cpp b/test/Parser/cxx11-stmt-attributes.cpp index f26db7989f..a9958471d6 100644 --- a/test/Parser/cxx11-stmt-attributes.cpp +++ b/test/Parser/cxx11-stmt-attributes.cpp @@ -27,7 +27,7 @@ void foo(int i) { [[unknown_attribute]] return; // expected-warning {{unknown attribute 'unknown_attribute' ignored}} - alignas(8) ; // expected-warning {{attribute aligned cannot be specified on a statement}} + alignas(8) ; // expected-warning {{attribute alignas cannot be specified on a statement}} [[noreturn]] { } // expected-warning {{attribute noreturn cannot be specified on a statement}} [[noreturn]] if (0) { } // expected-warning {{attribute noreturn cannot be specified on a statement}} [[noreturn]] for (;;); // expected-warning {{attribute noreturn cannot be specified on a statement}} |