2 cat >modules.modulemap <<EOF
9 clang -D CHILD_H -E -o Child.h submodules.m
10 clang -cc1 -emit-obj -fmodules -fmodule-map-file=modules.modulemap \
11 -fmodule-format=obj -g -dwarf-ext-refs -fmodules-cache-path=. \
12 -fdisable-module-hash submodules.m -o 1.o
15 // RUN: llvm-dsymutil -f -oso-prepend-path=%p/../Inputs/submodules \
16 // RUN: -y %p/dummy-debug-map.map -o - \
17 // RUN: | llvm-dwarfdump --debug-dump=info - | FileCheck %s
19 // ---------------------------------------------------------------------
21 // ---------------------------------------------------------------------
22 // CHECK: DW_TAG_compile_unit
24 // CHECK: DW_TAG_module
25 // CHECK-NEXT: DW_AT_name{{.*}}"Parent"
26 // CHECK: DW_TAG_module
27 // CHECK-NEXT: DW_AT_name{{.*}}"Child"
28 // CHECK: DW_TAG_structure_type
30 // CHECK: DW_AT_name {{.*}}"PruneMeNot"
34 // ---------------------------------------------------------------------
36 // ---------------------------------------------------------------------
39 int main(int argc, char **argv) { return 0; }