r199141 - 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.
Aaron Ballman
aaron at aaronballman.com
Mon Jan 13 13:30:04 PST 2014
Author: aaronballman
Date: Mon Jan 13 15:30:03 2014
New Revision: 199141
URL: http://llvm.org/viewvc/llvm-project?rev=199141&view=rev
Log:
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.
Modified:
cfe/trunk/test/Sema/attr-aligned.c
cfe/trunk/test/Sema/types.c
cfe/trunk/test/SemaTemplate/attributes.cpp
Modified: cfe/trunk/test/Sema/attr-aligned.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Sema/attr-aligned.c?rev=199141&r1=199140&r2=199141&view=diff
==============================================================================
--- cfe/trunk/test/Sema/attr-aligned.c (original)
+++ cfe/trunk/test/Sema/attr-aligned.c Mon Jan 13 15:30:03 2014
@@ -32,7 +32,7 @@ struct D { int member __attribute__((ali
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};
Modified: cfe/trunk/test/Sema/types.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Sema/types.c?rev=199141&r1=199140&r2=199141&view=diff
==============================================================================
--- cfe/trunk/test/Sema/types.c (original)
+++ cfe/trunk/test/Sema/types.c Mon Jan 13 15:30:03 2014
@@ -53,7 +53,7 @@ _Decimal32 x; // expected-error {{GNU d
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
Modified: cfe/trunk/test/SemaTemplate/attributes.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/SemaTemplate/attributes.cpp?rev=199141&r1=199140&r2=199141&view=diff
==============================================================================
--- cfe/trunk/test/SemaTemplate/attributes.cpp (original)
+++ cfe/trunk/test/SemaTemplate/attributes.cpp Mon Jan 13 15:30:03 2014
@@ -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>
More information about the cfe-commits
mailing list