forked from OSchip/llvm-project
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:
parent
a39da8e236
commit
56fde96610
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue