[clang] Handle __declspec() attributes in using
[llvm-project.git] / clang / test / CodeGenCXX / debug-info-union.cpp
blobcffe6e961cd44ace5236418ddb1edfd1461f890c
1 // RUN: %clang_cc1 -emit-llvm -debug-info-kind=limited -triple x86_64-apple-darwin -std=c++11 %s -o - | FileCheck %s
3 union E {
4 int a;
5 float b;
6 int bb() { return a;}
7 float aa() { return b;}
8 E() { a = 0; }
9 };
11 E e;
13 // CHECK: !DICompositeType(tag: DW_TAG_union_type, name: "E"
14 // CHECK-SAME: line: 3
15 // CHECK-SAME: size: 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