[clang] Implement lifetime analysis for lifetime_capture_by(X) (#115921)
[llvm-project.git] / clang / test / Modules / DebugInfoNamespace.cpp
blobb2095adf68675fe1c4bb0a2274769b6e36ef6870
1 // UNSUPPORTED: target={{.*}}-zos{{.*}}, target={{.*}}-aix{{.*}}
2 // RUN: rm -rf %t
3 // RUN: %clang_cc1 -x objective-c++ -std=c++11 -debug-info-kind=standalone \
4 // RUN: -dwarf-ext-refs -fmodules \
5 // RUN: -fmodule-format=obj -fimplicit-module-maps \
6 // RUN: -triple %itanium_abi_triple -fmodules-cache-path=%t \
7 // RUN: %s -I %S/Inputs/DebugInfoNamespace -I %t -emit-llvm -o - \
8 // RUN: | FileCheck %s
10 #include "A.h"
11 #include "B.h"
12 using namespace N;
13 B b;
15 // Verify that the forward decl of B is in module B.
17 // CHECK: !DICompositeType(tag: DW_TAG_structure_type, name: "B",
18 // CHECK-SAME: scope: ![[N:[0-9]+]]
19 // CHECK: ![[N]] = !DINamespace(name: "N", scope: ![[B:[0-9]+]])
20 // CHECK: ![[B]] = !DIModule(scope: null, name: "B",