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.

llvm-svn: 188993
This commit is contained in:
Dmitri Gribenko 2013-08-22 08:13:43 +00:00
parent a39da8e236
commit 56fde96610
1 changed files with 1 additions and 7 deletions

View File

@ -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