24 lines · cpp
1// RUN: %clang_cc1 -debug-info-kind=constructor -emit-llvm %s -o - \2// RUN: | FileCheck %s -check-prefix=CTOR_HOMING3// RUN: %clang_cc1 -debug-info-kind=limited -fuse-ctor-homing -emit-llvm %s -o - \4// RUN: | FileCheck %s -check-prefix=CTOR_HOMING5// RUN: %clang_cc1 -debug-info-kind=standalone -fuse-ctor-homing -emit-llvm %s -o - \6// RUN: | FileCheck %s -check-prefix=FULL_DEBUG7// RUN: %clang_cc1 -debug-info-kind=line-tables-only -fuse-ctor-homing -emit-llvm %s -o - \8// RUN: | FileCheck %s -check-prefix=NO_DEBUG9// RUN: %clang_cc1 -fuse-ctor-homing -emit-llvm %s -o - \10// RUN: | FileCheck %s -check-prefix=NO_DEBUG11//12// RUN: %clang_cc1 -debug-info-kind=constructor -fno-use-ctor-homing \13// RUN: -emit-llvm %s -o - | FileCheck %s -check-prefix=FULL_DEBUG14 15// This tests that the -fuse-ctor-homing is only used if limited debug info would have16// been used otherwise.17 18// CTOR_HOMING: !DICompositeType(tag: DW_TAG_structure_type, name: "A"{{.*}}flags: DIFlagFwdDecl19// FULL_DEBUG: !DICompositeType(tag: DW_TAG_structure_type, name: "A"{{.*}}DIFlagTypePassByValue20// NO_DEBUG-NOT: !DICompositeType(tag: DW_TAG_structure_type, name: "A"21struct A {22 A();23} TestA;24