blob: 1b31aada9c6a205bd6a81da25f5d5b961dcd7034 [file] [log] [blame]
Adrian Prantl835e6632015-09-24 16:10:10 +00001// RUN: rm -rf %t
Douglas Katzman3459ce22015-10-08 04:24:12 +00002// RUN: %clang_cc1 -fmodules -fmodule-format=obj -debug-info-kind=limited -dwarf-ext-refs \
Adrian Prantl835e6632015-09-24 16:10:10 +00003// RUN: -fimplicit-module-maps -x c -fmodules-cache-path=%t -I %S/Inputs \
David Blaikieaf09f4a2016-05-03 23:06:40 +00004// RUN: %s -emit-llvm -debugger-tuning=lldb -o - | FileCheck %s
Adrian Prantl835e6632015-09-24 16:10:10 +00005#include "DebugSubmoduleA.h"
6#include "DebugSubmoduleB.h"
7
8// CHECK: !DICompileUnit
9// CHECK-NOT: !DICompileUnit
10// CHECK: !DIModule(scope: ![[PARENT:.*]], name: "DebugSubmoduleA"
11// CHECK: [[PARENT]] = !DIModule(scope: null, name: "DebugSubmodules"
12// CHECK: !DIModule(scope: ![[PARENT]], name: "DebugSubmoduleB"
13// CHECK: !DICompileUnit({{.*}}splitDebugFilename: {{.*}}DebugSubmodules
14// CHECK-SAME: dwoId:
15// CHECK-NOT: !DICompileUnit