1// RUN: rm -rf %t
2// RUN: %clang_cc1 -debug-info-kind=limited -fmodules -DGREETING="Hello World" -UNDEBUG -fimplicit-module-maps -fmodules-cache-path=%t %s -I %S/Inputs -isysroot /tmp/.. -I %t -emit-llvm -o - | FileCheck %s
3
4// CHECK: ![[CU:.*]] = distinct !DICompileUnit
5@import DebugObjC;
6// CHECK: !DIImportedEntity(tag: DW_TAG_imported_declaration, scope: ![[CU]],
7// CHECK-SAME:              entity: ![[MODULE:.*]], line: 5)
8// CHECK: ![[MODULE]] = !DIModule(scope: null, name: "DebugObjC",
9// CHECK-SAME:  configMacros: "\22-DGREETING=Hello World\22 \22-UNDEBUG\22",
10// CHECK-SAME:  includePath: "{{.*}}test{{.*}}Modules{{.*}}Inputs",
11// CHECK-SAME:  isysroot: "/tmp/..")
12
13
14// RUN: %clang_cc1 -debug-info-kind=limited -fmodules -fimplicit-module-maps -fmodules-cache-path=%t \
15// RUN:   %s -I %S/Inputs -isysroot /tmp/.. -I %t -emit-llvm -o - \
16// RUN:     | FileCheck %s --check-prefix=NO-SKEL-CHECK
17// NO-SKEL-CHECK: distinct !DICompileUnit
18// NO-SKEL-CHECK-NOT: distinct !DICompileUnit
19
20// RUN: %clang_cc1 -debug-info-kind=limited -fmodules -fimplicit-module-maps -fmodules-cache-path=%t \
21// RUN:   -fmodule-format=obj -dwarf-ext-refs \
22// RUN:   %s -I %S/Inputs -isysroot /tmp/.. -I %t -emit-llvm -o - \
23// RUN:     | FileCheck %s --check-prefix=SKEL-CHECK
24// SKEL-CHECK: distinct !DICompileUnit
25// SKEL-CHECK: distinct !DICompileUnit{{.*}}dwoId
26