1 // RUN: %clang_cc1 -emit-llvm -debug-info-kind=limited -triple x86_64-apple-darwin -std=c++11 %s -o - | FileCheck %s
2 
3 union E {
4   int a;
5   float b;
bb()6   int bb() { return a;}
aa()7   float aa() { return b;}
E()8   E() { a = 0; }
9 };
10 
11 E e;
12 
13 // CHECK: !DICompositeType(tag: DW_TAG_union_type, name: "E"
14 // CHECK-SAME:             line: 3
15 // CHECK-SAME:             size: 32, align: 32
16 // CHECK-NOT:              offset:
17 // CHECK-SAME:             {{$}}
18 // CHECK: !DISubprogram(name: "bb"{{.*}}, line: 6
19 // CHECK: !DISubprogram(name: "aa"{{.*}}, line: 7
20 // CHECK: !DISubprogram(name: "E"{{.*}}, line: 8
21