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