diff options
Diffstat (limited to 'clang/test')
-rw-r--r-- | clang/test/Sema/attr-endian.c | 10 | ||||
-rw-r--r-- | clang/test/SemaOpenCL/endian-attr.cl | 8 |
2 files changed, 2 insertions, 16 deletions
diff --git a/clang/test/Sema/attr-endian.c b/clang/test/Sema/attr-endian.c index 09442400a55..db24dafd421 100644 --- a/clang/test/Sema/attr-endian.c +++ b/clang/test/Sema/attr-endian.c @@ -1,11 +1,3 @@ // RUN: %clang_cc1 %s -verify -fsyntax-only -int p1 __attribute__((endian(host))); -int p2 __attribute__((endian(device))); - -int p3 __attribute__((endian)); // expected-error {{'endian' attribute requires parameter 1 to be an identifier}} -int p4 __attribute__((endian("host"))); // expected-error {{'endian' attribute requires parameter 1 to be an identifier}} -int p5 __attribute__((endian(host, 15))); // expected-error {{'endian' attribute takes one argument}} -int p6 __attribute__((endian(strange))); // expected-warning {{unknown endian 'strange'}} - -void func(void) __attribute__((endian(host))); // expected-warning {{'endian' attribute only applies to variables}} +int p1 __attribute__((endian(host))); // expected-warning {{unknown attribute 'endian' ignored}} diff --git a/clang/test/SemaOpenCL/endian-attr.cl b/clang/test/SemaOpenCL/endian-attr.cl index ba2f0e5c73e..f7766431004 100644 --- a/clang/test/SemaOpenCL/endian-attr.cl +++ b/clang/test/SemaOpenCL/endian-attr.cl @@ -1,9 +1,3 @@ // RUN: %clang_cc1 -verify %s -constant long a __attribute__((endian(host))) = 100; - -constant long b __attribute__((endian(device))) = 100; - -constant long c __attribute__((endian(none))) = 100; // expected-warning {{unknown endian 'none'}} - -void func() __attribute__((endian(host))); // expected-warning {{'endian' attribute only applies to variables}} +constant long a __attribute__((endian(host))) = 100; // expected-warning {{unknown attribute 'endian' ignored}} |