[SystemZ][z/OS] Update target specific __attribute__((aligned)) value for test

z/OS defaults to 16 bytes for  __attribute__((aligned)), modify the test to differentiate between z/OS and Linux on s390x.

Reviewed By: abhina.sreeskantharajan

Differential Revision: https://reviews.llvm.org/D89127
This commit is contained in:
Fanbo Meng 2020-10-09 10:13:45 -04:00
parent 86d61365d8
commit d91234b21c
1 changed files with 1 additions and 1 deletions

View File

@ -59,7 +59,7 @@ extern int e2[__alignof(struct as1) == 8 ? 1 : -1];
struct __attribute__((aligned)) as1_2 { struct __attribute__((aligned)) as1_2 {
char c; char c;
}; };
#if ( defined(__s390x__) || ( defined (__ARM_32BIT_STATE) && ! defined(__ANDROID__) ) ) #if ((defined(__s390x__) && !defined(__MVS__)) || (defined(__ARM_32BIT_STATE) && !defined(__ANDROID__)))
extern int e1_2[sizeof(struct as1_2) == 8 ? 1 : -1]; extern int e1_2[sizeof(struct as1_2) == 8 ? 1 : -1];
extern int e2_2[__alignof(struct as1_2) == 8 ? 1 : -1]; extern int e2_2[__alignof(struct as1_2) == 8 ? 1 : -1];
#else #else