]> granicus.if.org Git - clang/commitdiff
gnu-flags.c test: relax the check a bit
authorDmitri Gribenko <gribozavr@gmail.com>
Thu, 22 Aug 2013 08:13:43 +0000 (08:13 +0000)
committerDmitri Gribenko <gribozavr@gmail.com>
Thu, 22 Aug 2013 08:13:43 +0000 (08:13 +0000)
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

test/Sema/gnu-flags.c

index 2d4b518993d29a3d5d5b42dba2a61493e6d24db5..065fc2f9f14d83b60dd40b4c718ad49e164dfcee 100644 (file)
 #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