blob: 16820baebe68b974d9c17fea2e5cf5e030d6955b [file] [log] [blame]
Adrian Prantlc4bb47e2015-06-30 17:39:51 +00001// RUN: rm -rf %t
David Blaikieaf09f4a2016-05-03 23:06:40 +00002// 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
Adrian Prantlc4bb47e2015-06-30 17:39:51 +00009
Adrian Prantl324c03f2015-06-30 18:32:50 +000010// CHECK: ![[CU:.*]] = distinct !DICompileUnit
Adrian Prantl748a6cd2015-09-08 20:41:52 +000011@import DebugObjC;
Adrian Prantl68448fe2015-09-21 17:48:42 +000012// CHECK: !DIImportedEntity(tag: DW_TAG_imported_declaration, scope: ![[CU]],
Adrian Prantl5649b0e2017-07-19 00:09:58 +000013// CHECK-SAME: entity: ![[MODULE:.*]], file: ![[F:[0-9]+]],
14// CHECK-SAME: line: [[@LINE-3]])
Adrian Prantl68448fe2015-09-21 17:48:42 +000015// CHECK: ![[MODULE]] = !DIModule(scope: null, name: "DebugObjC",
16// CHECK-SAME: configMacros: "\22-DGREETING=Hello World\22 \22-UNDEBUG\22",
17// CHECK-SAME: includePath: "{{.*}}test{{.*}}Modules{{.*}}Inputs",
18// CHECK-SAME: isysroot: "/tmp/..")
Adrian Prantl5649b0e2017-07-19 00:09:58 +000019// CHECK: ![[F]] = !DIFile(filename: {{.*}}debug-info-moduleimport.m
Adrian Prantl68448fe2015-09-21 17:48:42 +000020
Douglas Katzman3459ce22015-10-08 04:24:12 +000021// RUN: %clang_cc1 -debug-info-kind=limited -fmodules -fimplicit-module-maps -fmodules-cache-path=%t \
Adrian Prantl68448fe2015-09-21 17:48:42 +000022// 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
Douglas Katzman3459ce22015-10-08 04:24:12 +000027// RUN: %clang_cc1 -debug-info-kind=limited -fmodules -fimplicit-module-maps -fmodules-cache-path=%t \
Adrian Prantl68448fe2015-09-21 17:48:42 +000028// 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