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
This commit is contained in:
Aaron Ballman 2014-01-13 21:30:03 +00:00
parent 3fac6498e1
commit 87e7dea2cd
3 changed files with 3 additions and 3 deletions

View File

@ -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};

View File

@ -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

View File

@ -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>