annotate clang/test/Modules/debug-info-moduleimport.m @ 150:1d019706d866

LLVM10
author anatofuz
date Thu, 13 Feb 2020 15:10:13 +0900
parents
children 0572611fdcc8
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
150
anatofuz
parents:
diff changeset
1 // RUN: rm -rf %t
anatofuz
parents:
diff changeset
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
anatofuz
parents:
diff changeset
3
anatofuz
parents:
diff changeset
4 // NOIMPORT-NOT: !DIImportedEntity
anatofuz
parents:
diff changeset
5 // NOIMPORT-NOT: !DIModule
anatofuz
parents:
diff changeset
6
anatofuz
parents:
diff changeset
7 // RUN: rm -rf %t
anatofuz
parents:
diff changeset
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
anatofuz
parents:
diff changeset
9
anatofuz
parents:
diff changeset
10 // CHECK: ![[CU:.*]] = distinct !DICompileUnit
anatofuz
parents:
diff changeset
11 // CHECK-SAME: sysroot: "/tmp/..")
anatofuz
parents:
diff changeset
12 @import DebugObjC;
anatofuz
parents:
diff changeset
13 // CHECK: !DIImportedEntity(tag: DW_TAG_imported_declaration, scope: ![[CU]],
anatofuz
parents:
diff changeset
14 // CHECK-SAME: entity: ![[MODULE:.*]], file: ![[F:[0-9]+]],
anatofuz
parents:
diff changeset
15 // CHECK-SAME: line: [[@LINE-3]])
anatofuz
parents:
diff changeset
16 // CHECK: ![[MODULE]] = !DIModule(scope: null, name: "DebugObjC",
anatofuz
parents:
diff changeset
17 // CHECK-SAME: configMacros: "\22-DGREETING=Hello World\22 \22-UNDEBUG\22",
anatofuz
parents:
diff changeset
18 // CHECK-SAME: includePath: "{{.*}}test{{.*}}Modules{{.*}}Inputs"
anatofuz
parents:
diff changeset
19 // CHECK: ![[F]] = !DIFile(filename: {{.*}}debug-info-moduleimport.m
anatofuz
parents:
diff changeset
20
anatofuz
parents:
diff changeset
21 // RUN: %clang_cc1 -debug-info-kind=limited -fmodules -fimplicit-module-maps -fmodules-cache-path=%t \
anatofuz
parents:
diff changeset
22 // RUN: %s -I %S/Inputs -isysroot /tmp/.. -I %t -emit-llvm -o - \
anatofuz
parents:
diff changeset
23 // RUN: | FileCheck %s --check-prefix=NO-SKEL-CHECK
anatofuz
parents:
diff changeset
24 // NO-SKEL-CHECK: distinct !DICompileUnit
anatofuz
parents:
diff changeset
25 // NO-SKEL-CHECK-NOT: distinct !DICompileUnit
anatofuz
parents:
diff changeset
26
anatofuz
parents:
diff changeset
27 // RUN: %clang_cc1 -debug-info-kind=limited -fmodules -fimplicit-module-maps -fmodules-cache-path=%t \
anatofuz
parents:
diff changeset
28 // RUN: -fmodule-format=obj -dwarf-ext-refs \
anatofuz
parents:
diff changeset
29 // RUN: %s -I %S/Inputs -isysroot /tmp/.. -I %t -emit-llvm -o - \
anatofuz
parents:
diff changeset
30 // RUN: | FileCheck %s --check-prefix=SKEL-CHECK
anatofuz
parents:
diff changeset
31 // SKEL-CHECK: distinct !DICompileUnit
anatofuz
parents:
diff changeset
32 // SKEL-CHECK: distinct !DICompileUnit{{.*}}dwoId