1 // RUN: %clang -cc1 -debug-info-kind=constructor -emit-llvm %s -o - | FileCheck %s
2 
3 // CHECK-DAG: !DICompositeType(tag: DW_TAG_structure_type, name: "A"{{.*}}DIFlagTypePassByValue
4 struct A {
5 } TestA;
6 
7 // CHECK-DAG: !DICompositeType(tag: DW_TAG_structure_type, name: "B"{{.*}}flags: DIFlagFwdDecl
8 struct B {
9   B();
10 } TestB;
11 
12 // CHECK-DAG: !DICompositeType(tag: DW_TAG_structure_type, name: "C"{{.*}}DIFlagTypePassByValue
13 struct C {
14   C() {}
15 } TestC;
16 
17 // CHECK-DAG: !DICompositeType(tag: DW_TAG_structure_type, name: "D"{{.*}}DIFlagTypePassByValue
18 struct D {
19   D();
20 };
21 D::D() {}
22 
23 // CHECK-DAG: !DICompositeType(tag: DW_TAG_structure_type, name: "E"{{.*}}DIFlagTypePassByValue
24 struct E {
25   constexpr E(){};
26 } TestE;
27 
28 // CHECK-DAG: !DICompositeType(tag: DW_TAG_structure_type, name: "F"{{.*}}DIFlagTypePassByValue
29 struct F {
30   F() = default;
31   F(int) {}
32   int i;
33 } TestF;
34