diff options
| author | Aaron Ballman <aaron@aaronballman.com> | 2014-01-13 21:30:03 +0000 |
|---|---|---|
| committer | Aaron Ballman <aaron@aaronballman.com> | 2014-01-13 21:30:03 +0000 |
| commit | 87e7dea2cd267327cda7a85c81586756e1541493 (patch) | |
| tree | 8955f9860cce196673fb8a35be4ec097a9940a2b /clang/test | |
| parent | 3fac6498e1540100c0d597d3662287e38e5826ff (diff) | |
| download | bcm5719-llvm-87e7dea2cd267327cda7a85c81586756e1541493.tar.gz bcm5719-llvm-87e7dea2cd267327cda7a85c81586756e1541493.zip | |
There is no such thing as __attribute__((align)); that's a __declspec attribute. Fixing these test cases to use the proper spelling for their syntax.
llvm-svn: 199141
Diffstat (limited to 'clang/test')
| -rw-r--r-- | clang/test/Sema/attr-aligned.c | 2 | ||||
| -rw-r--r-- | clang/test/Sema/types.c | 2 | ||||
| -rw-r--r-- | clang/test/SemaTemplate/attributes.cpp | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/clang/test/Sema/attr-aligned.c b/clang/test/Sema/attr-aligned.c index 92f2742d2f2..c094ff172dd 100644 --- a/clang/test/Sema/attr-aligned.c +++ b/clang/test/Sema/attr-aligned.c @@ -32,7 +32,7 @@ struct D { int member __attribute__((aligned(2))) __attribute__((packed)); } d; char d1[__alignof__(d) == 2 ?: -1] = {0}; char d2[__alignof__(d.member) == 2 ?: -1] = {0}; -struct E { int member __attribute__((align(2))); } __attribute__((packed)); +struct E { int member __attribute__((aligned(2))); } __attribute__((packed)); struct E e; char e1[__alignof__(e) == 2 ?: -1] = {0}; char e2[__alignof__(e.member) == 2 ?: -1] = {0}; diff --git a/clang/test/Sema/types.c b/clang/test/Sema/types.c index 0abd148ce17..339788eb9df 100644 --- a/clang/test/Sema/types.c +++ b/clang/test/Sema/types.c @@ -53,7 +53,7 @@ _Decimal32 x; // expected-error {{GNU decimal type extension not supported}} int __attribute__ ((vector_size (8), vector_size (8))) v; // expected-error {{invalid vector element type}} void test(int i) { - char c = (char __attribute__((align(8)))) i; // expected-warning {{'align' attribute ignored when parsing type}} + char c = (char __attribute__((aligned(8)))) i; // expected-warning {{'aligned' attribute ignored when parsing type}} } // http://llvm.org/PR11082 diff --git a/clang/test/SemaTemplate/attributes.cpp b/clang/test/SemaTemplate/attributes.cpp index 5a06a706aa8..1d46058b019 100644 --- a/clang/test/SemaTemplate/attributes.cpp +++ b/clang/test/SemaTemplate/attributes.cpp @@ -22,7 +22,7 @@ namespace attribute_aligned { template<unsigned Size, unsigned Align> class my_aligned_storage { - __attribute__((align(Align))) char storage[Size]; + __attribute__((aligned(Align))) char storage[Size]; }; template<typename T> |

