diff options
author | Dmitri Gribenko <gribozavr@gmail.com> | 2013-08-22 08:13:43 +0000 |
---|---|---|
committer | Dmitri Gribenko <gribozavr@gmail.com> | 2013-08-22 08:13:43 +0000 |
commit | 8d061b8ee7f5a56c494708b1ad00fffbb01dc4e9 (patch) | |
tree | 7861f00d81722aac7f46a8af70410f9f50b30127 /test/Sema | |
parent | df72071db0ddfd7264485105c19230c315e8ce2c (diff) | |
download | clang-8d061b8ee7f5a56c494708b1ad00fffbb01dc4e9.tar.gz |
gnu-flags.c test: relax the check a bit
This tests warning flags, so no need to test for specific alignment which is
platform-dependent.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@188993 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Sema')
-rw-r--r-- | test/Sema/gnu-flags.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/test/Sema/gnu-flags.c b/test/Sema/gnu-flags.c index 2d4b518993..065fc2f9f1 100644 --- a/test/Sema/gnu-flags.c +++ b/test/Sema/gnu-flags.c @@ -20,18 +20,12 @@ #endif -#ifdef __s390x__ -#define EXPECTED_ALIGN 2 -#else -#define EXPECTED_ALIGN 1 -#endif - #if ALL || ALIGNOF // expected-warning@+4 {{'_Alignof' applied to an expression is a GNU extension}} #endif char align; -_Static_assert(_Alignof(align) == EXPECTED_ALIGN, "align's alignment is wrong"); +_Static_assert(_Alignof(align) > 0, "align's alignment is wrong"); #if ALL || CASERANGE |