blob: d5be3ca1462bf5242d470ed5fa6e23fcd7a27d25 [file] [log] [blame]
Adrian Prantl835e6632015-09-24 16:10:10 +00001// RUN: rm -rf %t
2// RUN: %clang_cc1 -fmodules -fmodule-format=obj -g -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