1 // Copyright 2020 The Go Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style
3 // license that can be found in the LICENSE file.
9 // This file tests that we don't generate an incorrect field location
10 // for a bitfield that appears aligned.
18 unsigned int Short1 : 16; // misaligned on 8 bit boundary
25 unsigned int Short2 : 16; // alignment is OK
26 unsigned int Short3 : 16; // alignment is OK
31 type bitfields C.struct_bitfields