• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // RUN: rm -rf %t
2 // RUN: %clang_cc1 -x objective-c++ -std=c++11 -debug-info-kind=standalone \
3 // RUN:     -dwarf-ext-refs -fmodules \
4 // RUN:     -fmodule-format=obj -fimplicit-module-maps \
5 // RUN:     -triple %itanium_abi_triple -fmodules-cache-path=%t \
6 // RUN:     %s -I %S/Inputs/DebugInfoNamespace -I %t -emit-llvm -o - \
7 // RUN:     |  FileCheck %s
8 
9 #include "A.h"
10 #include "B.h"
11 using namespace N;
12 B b;
13 
14 // Verify that the forward decl of B is in module B.
15 //
16 // CHECK: !DICompositeType(tag: DW_TAG_structure_type, name: "B",
17 // CHECK-SAME:             scope: ![[N:[0-9]+]]
18 // CHECK: ![[N]] = !DINamespace(name: "N", scope: ![[B:[0-9]+]])
19 // CHECK: ![[B]] = !DIModule(scope: null, name: "B",
20