1*67e74705SXin Li // RUN: %clang_cc1 -triple s390x-linux-gnu -fsyntax-only -verify %s 2*67e74705SXin Li // expected-no-diagnostics 3*67e74705SXin Li 4*67e74705SXin Li // SystemZ prefers to align all global variables to two bytes, 5*67e74705SXin Li // but this should *not* be reflected in the ABI alignment as 6*67e74705SXin Li // retrieved via __alignof__. 7*67e74705SXin Li 8*67e74705SXin Li struct test { 9*67e74705SXin Li signed char a; 10*67e74705SXin Li }; 11*67e74705SXin Li 12*67e74705SXin Li char c; 13*67e74705SXin Li struct test s; 14*67e74705SXin Li 15*67e74705SXin Li int chk1[__alignof__(c) == 1 ? 1 : -1]; 16*67e74705SXin Li int chk2[__alignof__(s) == 1 ? 1 : -1]; 17*67e74705SXin Li 18