1 // RUN: %clang_cc1 -triple x86_64-pc-linux-gnu -fsyntax-only -verify %s
2 // expected-no-diagnostics
3
4 // PR5599
5
6 void frob(void *);
7
foo(void)8 void foo(void) {
9 float x[4];
10 char y[__alignof__(x) == 16 ? 1 : -1];
11 frob(y);
12 }
13
14 // PR5637
15
16 typedef __attribute__((aligned(16))) struct {
17 unsigned long long w[3];
18 } UINT192;
19
20 UINT192 ten2mk192M[] = {
21 {{0xcddd6e04c0592104ULL, 0x0fcf80dc33721d53ULL, 0xa7c5ac471b478423ULL}},
22 {{0xcddd6e04c0592104ULL, 0x0fcf80dc33721d53ULL, 0xa7c5ac471b478423ULL}},
23 {{0xcddd6e04c0592104ULL, 0x0fcf80dc33721d53ULL, 0xa7c5ac471b478423ULL}}
24 };
25
26 short chk1[sizeof(ten2mk192M) == 80 ? 1 : -1];
27