summaryrefslogtreecommitdiffstats
path: root/clang/test/Parser/cxx0x-attributes.cpp
diff options
context:
space:
mode:
authorPeter Collingbourne <peter@pcc.me.uk>2011-09-29 18:04:28 +0000
committerPeter Collingbourne <peter@pcc.me.uk>2011-09-29 18:04:28 +0000
commit2f3cf4b15825d52b1f799c3a94402f85924b1df6 (patch)
tree211b7a26f91487e3225b0542c7286d8a3d4fcb0c /clang/test/Parser/cxx0x-attributes.cpp
parent4ce4de8eadcfb884671c0ee1cedfb0901e185cf3 (diff)
downloadbcm5719-llvm-2f3cf4b15825d52b1f799c3a94402f85924b1df6.tar.gz
bcm5719-llvm-2f3cf4b15825d52b1f799c3a94402f85924b1df6.zip
Add support for alignment-specifiers in C1X and C++11, remove
support for the C++0x draft [[align]] attribute and add the C1X standard header file stdalign.h llvm-svn: 140796
Diffstat (limited to 'clang/test/Parser/cxx0x-attributes.cpp')
-rw-r--r--clang/test/Parser/cxx0x-attributes.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/clang/test/Parser/cxx0x-attributes.cpp b/clang/test/Parser/cxx0x-attributes.cpp
index 0b6413cfb27..94ea34d5035 100644
--- a/clang/test/Parser/cxx0x-attributes.cpp
+++ b/clang/test/Parser/cxx0x-attributes.cpp
@@ -6,7 +6,7 @@ int [[]] between_attr;
int after_attr [[]];
int * [[]] ptr_attr;
int array_attr [1] [[]];
-[[align(8)]] int aligned_attr;
+alignas(8) int aligned_attr;
[[test::valid(for 42 [very] **** '+' symbols went on a trip; the end.)]]
int garbage_attr;
void fn_attr () [[]];
@@ -32,8 +32,8 @@ extern "C++" [[]] { } // expected-error {{an attribute list cannot appear here}}
[[]] using namespace ns;
// Argument tests
-[[align]] int aligned_no_params; // expected-error {{C++0x attribute 'align' must have an argument list}}
-[[align(i)]] int aligned_nonconst; // expected-error {{'aligned' attribute requires integer constant}}
+alignas int aligned_no_params; // expected-error {{expected '('}}
+alignas(i) int aligned_nonconst; // expected-error {{'aligned' attribute requires integer constant}}
// Statement tests
void foo () {
OpenPOWER on IntegriCloud