From d11c7a16289b43094b9de51ed437770607cb45a5 Mon Sep 17 00:00:00 2001 From: Richard Smith Date: Tue, 29 Jan 2013 01:48:07 +0000 Subject: 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 --- clang/test/Parser/cxx11-stmt-attributes.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'clang/test/Parser/cxx11-stmt-attributes.cpp') 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}} -- cgit v1.2.3