1 // RUN: %clang_cc1 -triple=x86_64-none-none -Wpadded-bitfield -verify=expected %s -emit-llvm-only
5 unsigned long long : 0; // expected-warning {{padding struct 'S1' with 63 bits to align anonymous bit-field}}
10 unsigned long long b
: 64; // expected-warning {{padding struct 'S2' with 63 bits to align 'b'}}
15 short b
: 16; // expected-warning {{padding struct 'S3' with 15 bits to align 'b'}}
18 struct [[gnu::packed
]] S4
{
25 unsigned long long b
: 63;
36 int filler
__attribute__ ((aligned (8)));
40 // The warnings are emitted when the layout of the structs is computed, so we have to use them.
41 void f(S1
, S2
, S3
, S4
, S5
, S6
, S7
){}