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