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