1 // RUN: %clang -cc1 -debug-info-kind=constructor -emit-llvm %s -o - \
2 // RUN:        | FileCheck %s -check-prefix=CTOR_HOMING
3 // RUN: %clang -cc1 -debug-info-kind=limited -fuse-ctor-homing -emit-llvm %s -o - \
4 // RUN:        | FileCheck %s -check-prefix=CTOR_HOMING
5 // RUN: %clang -cc1 -debug-info-kind=standalone -fuse-ctor-homing -emit-llvm %s -o - \
6 // RUN:        | FileCheck %s -check-prefix=FULL_DEBUG
7 // RUN: %clang -cc1 -debug-info-kind=line-tables-only -fuse-ctor-homing -emit-llvm %s -o - \
8 // RUN:        | FileCheck %s -check-prefix=NO_DEBUG
9 // RUN: %clang -cc1 -fuse-ctor-homing -emit-llvm %s -o - \
10 // RUN:        | FileCheck %s -check-prefix=NO_DEBUG
11 
12 // This tests that the -fuse-ctor-homing is only used if limited debug info would have
13 // been used otherwise.
14 
15 // CTOR_HOMING: !DICompositeType(tag: DW_TAG_structure_type, name: "A"{{.*}}flags: DIFlagFwdDecl
16 // FULL_DEBUG: !DICompositeType(tag: DW_TAG_structure_type, name: "A"{{.*}}DIFlagTypePassByValue
17 // NO_DEBUG-NOT: !DICompositeType(tag: DW_TAG_structure_type, name: "A"
18 struct A {
19   A();
20 } TestA;
21