blob: 7d436fe5fce65f9848b2094897523d7a50046995 [file] [log] [blame]
Adrian Prantlc4bb47e2015-06-30 17:39:51 +00001// RUN: rm -rf %t
2// RUN: %clang_cc1 -g -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
Adrian Prantl324c03f2015-06-30 18:32:50 +00004// CHECK: ![[CU:.*]] = distinct !DICompileUnit
Adrian Prantl748a6cd2015-09-08 20:41:52 +00005@import DebugObjC;
Adrian Prantl68448fe2015-09-21 17:48:42 +00006// 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 -g -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 -g -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