r188993 - gnu-flags.c test: relax the check a bit
Dmitri Gribenko
gribozavr at gmail.com
Thu Aug 22 01:13:45 PDT 2013
Author: gribozavr
Date: Thu Aug 22 03:13:43 2013
New Revision: 188993
URL: http://llvm.org/viewvc/llvm-project?rev=188993&view=rev
Log:
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.
Modified:
cfe/trunk/test/Sema/gnu-flags.c
Modified: cfe/trunk/test/Sema/gnu-flags.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Sema/gnu-flags.c?rev=188993&r1=188992&r2=188993&view=diff
==============================================================================
--- cfe/trunk/test/Sema/gnu-flags.c (original)
+++ cfe/trunk/test/Sema/gnu-flags.c Thu Aug 22 03:13:43 2013
@@ -20,18 +20,12 @@
#endif
-#ifdef __s390x__
-#define EXPECTED_ALIGN 2
-#else
-#define EXPECTED_ALIGN 1
-#endif
-
#if ALL || ALIGNOF
// expected-warning at +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
More information about the cfe-commits
mailing list