xref: /llvm-project/clang/test/CodeGenCXX/bitfield-layout.cpp (revision 2295f13bb0e5d8f8651152adca3a123d6ce5c472)
1 // RUN: %clang_cc1 %s -triple=x86_64-apple-darwin10 -emit-llvm -o - | FileCheck %s
2 
3 // CHECK: %union.Test1 = type { i32, [4 x i8] }
4 union Test1 {
5   int a;
6   int b: 39;
7 } t1;
8 
9 // CHECK: %union.Test2 = type { i8 }
10 union Test2 {
11   int : 6;
12 } t2;
13 
14 // CHECK: %union.Test3 = type { [2 x i8] }
15 union Test3 {
16   int : 9;
17 } t3;
18