[clang] Implement lifetime analysis for lifetime_capture_by(X) (#115921)
[llvm-project.git] / clang / test / Modules / ModuleModuleDebugInfo.cpp
blob61449643937a786f2902c267998b96b8208c2546
1 // UNSUPPORTED: target={{.*}}-zos{{.*}}, target={{.*}}-aix{{.*}}
2 // RUN: rm -rf %t
4 // RUN: %clang_cc1 -x objective-c++ -std=c++11 -debug-info-kind=standalone \
5 // RUN: -dwarf-ext-refs -fmodules \
6 // RUN: -fmodule-format=obj -fimplicit-module-maps -DMODULES \
7 // RUN: -triple %itanium_abi_triple \
8 // RUN: -fmodules-cache-path=%t %s -I %S/Inputs -I %t -emit-llvm -o - \
9 // RUN: | FileCheck %s
11 #include "DebugNestedB.h"
12 AF af; // This type is not anchored in the module.
14 // CHECK: !DIDerivedType(tag: DW_TAG_typedef, name: "AF",
15 // CHECK-SAME: baseType: ![[AF:.*]])
17 // CHECK: ![[AF]] = {{.*}}!DICompositeType(tag: DW_TAG_structure_type, name: "A<F>",
18 // CHECK-SAME: elements: