forked from OSchip/llvm-project
Tweak gnu-flags.c test for z, where globals have 2-byte alignment by default
llvm-svn: 188905
This commit is contained in:
parent
d56f705d87
commit
4633cd7b08
|
@ -20,12 +20,18 @@
|
|||
#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) == 1, "align's alignment is wrong");
|
||||
_Static_assert(_Alignof(align) == EXPECTED_ALIGN, "align's alignment is wrong");
|
||||
|
||||
|
||||
#if ALL || CASERANGE
|
||||
|
|
Loading…
Reference in New Issue