| 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 |
| 9 |
|
| 10 |
#include "A.h" |
| 11 |
#include "B.h" |
| 12 |
using namespace N; |
| 13 |
B b; |
| 14 |
|
| 15 |
// Verify that the forward decl of B is in module B. |
| 16 |
// |
| 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", |