Tweak gnu-flags.c test for z, where globals have 2-byte alignment by default

llvm-svn: 188905
This commit is contained in:
Richard Sandiford 2013-08-21 16:37:37 +00:00
parent d56f705d87
commit 4633cd7b08
1 changed files with 7 additions and 1 deletions

View File

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