2015-09-21 00:51:35 +08:00
|
|
|
// RUN: rm -rf %t
|
2015-10-08 12:24:12 +08:00
|
|
|
// RUN: %clang_cc1 -fmodules -fmodule-format=obj -debug-info-kind=limited -dwarf-ext-refs \
|
2015-09-21 00:51:35 +08:00
|
|
|
// RUN: -fimplicit-module-maps -x c -fmodules-cache-path=%t -I %S/Inputs \
|
2015-09-25 00:10:10 +08:00
|
|
|
// RUN: %s -mllvm -debug-only=pchcontainer -emit-llvm -o %t.ll \
|
|
|
|
// RUN: 2>&1 | FileCheck %s
|
2015-09-21 14:57:36 +08:00
|
|
|
// REQUIRES: asserts
|
2015-09-21 00:51:35 +08:00
|
|
|
#include "DebugSubmoduleA.h"
|
|
|
|
|
|
|
|
// CHECK: !DICompositeType(tag: DW_TAG_structure_type, name: "A",
|
|
|
|
// CHECK-SAME: scope: ![[SUBMODULEA:[0-9]+]]
|
2015-09-25 00:10:10 +08:00
|
|
|
// CHECK: ![[SUBMODULEA]] = !DIModule(scope: ![[PARENT:[0-9]+]],
|
|
|
|
// CHECK-SAME: name: "DebugSubmoduleA",
|
|
|
|
// CHECK: ![[PARENT]] = !DIModule(scope: null, name: "DebugSubmodules"
|
2015-09-21 00:51:35 +08:00
|
|
|
|
|
|
|
// CHECK: !DICompositeType(tag: DW_TAG_structure_type, name: "B",
|
|
|
|
// CHECK-SAME: scope: ![[SUBMODULEB:[0-9]+]]
|
2015-09-25 00:10:10 +08:00
|
|
|
// CHECK: ![[SUBMODULEB]] = !DIModule(scope: ![[PARENT]],
|
|
|
|
// CHECK-SAME: name: "DebugSubmoduleB",
|