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 | d11c7a16289b43094b9de51ed437770607cb45a5 (patch) | |
tree | f4287d04941a9ef4b9198d7cd93cf6df20d7d96b /clang/test/Parser/cxx11-stmt-attributes.cpp | |
parent | 60011b8e2703e1bed7add86d00c00edcb5047527 (diff) | |
download | bcm5719-llvm-d11c7a16289b43094b9de51ed437770607cb45a5.tar.gz bcm5719-llvm-d11c7a16289b43094b9de51ed437770607cb45a5.zip |
Treat alignas and _Alignas as keyword attributes. This allows us to
pretty-print them properly (modulo the more general badness in alignment
attribute printing).
llvm-svn: 173752
Diffstat (limited to 'clang/test/Parser/cxx11-stmt-attributes.cpp')
-rw-r--r-- | clang/test/Parser/cxx11-stmt-attributes.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/test/Parser/cxx11-stmt-attributes.cpp b/clang/test/Parser/cxx11-stmt-attributes.cpp index f26db7989f1..a9958471d64 100644 --- a/clang/test/Parser/cxx11-stmt-attributes.cpp +++ b/clang/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}} |