1// RUN: rm -rf %t
2// RUN: %clang_cc1 -fmodules -fmodule-format=obj -debug-info-kind=limited -dwarf-ext-refs \
3// RUN:     -fimplicit-module-maps -x c -fmodules-cache-path=%t -I %S/Inputs \
4// RUN:     %s -emit-llvm -o - | FileCheck %s
5#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
16