2021-09-17 02:03:36 +08:00
|
|
|
// UNSUPPORTED: -zos, -aix
|
2015-09-22 01:48:37 +08:00
|
|
|
// RUN: rm -rf %t
|
2015-10-08 12:24:12 +08:00
|
|
|
// RUN: %clang_cc1 -fmodules -fmodule-format=obj -debug-info-kind=limited -dwarf-ext-refs \
|
2015-09-22 01:48:37 +08:00
|
|
|
// RUN: -fimplicit-module-maps -fmodules-cache-path=%t -I %S/Inputs \
|
2016-05-04 07:06:40 +08:00
|
|
|
// RUN: %s -mllvm -debug-only=pchcontainer -debugger-tuning=lldb 2>&1 | FileCheck %s
|
2015-09-22 01:48:37 +08:00
|
|
|
// REQUIRES: asserts
|
|
|
|
|
|
|
|
@import diamond_left;
|
|
|
|
|
2015-09-23 07:26:43 +08:00
|
|
|
// Definition of top:
|
|
|
|
// CHECK: !DICompileUnit({{.*}}dwoId:
|
|
|
|
// CHECK: !DIFile({{.*}}diamond_top.h
|
|
|
|
|
|
|
|
// Definition of left:
|
|
|
|
// CHECK: !DICompileUnit({{.*}}dwoId:
|
2015-09-22 01:48:37 +08:00
|
|
|
// CHECK: !DIImportedEntity(tag: DW_TAG_imported_declaration,
|
2020-05-27 19:58:21 +08:00
|
|
|
// CHECK-SAME: entity: ![[MODULE:.*]], file: ![[LEFT:.*]], line: 3)
|
2015-09-22 01:48:37 +08:00
|
|
|
// CHECK: ![[MODULE]] = !DIModule(scope: null, name: "diamond_top"
|
2020-05-27 19:58:21 +08:00
|
|
|
// CHECK: ![[LEFT]] = !DIFile({{.*}}diamond_left.h
|
2015-09-23 07:26:43 +08:00
|
|
|
|
|
|
|
// Skeleton for top:
|
|
|
|
// CHECK: !DICompileUnit({{.*}}splitDebugFilename: {{.*}}diamond_top{{.*}}dwoId:
|
2015-09-22 01:48:37 +08:00
|
|
|
|
2016-05-04 07:06:40 +08:00
|
|
|
// RUN: rm -rf %t
|
|
|
|
// RUN: %clang_cc1 -fmodules -fmodule-format=obj -debug-info-kind=limited -dwarf-ext-refs \
|
|
|
|
// RUN: -fimplicit-module-maps -fmodules-cache-path=%t -I %S/Inputs \
|
|
|
|
// RUN: %s -mllvm -debug-only=pchcontainer 2>&1 | FileCheck %s --check-prefix=NOIMPORT
|
|
|
|
|
|
|
|
// NOIMPORT-NOT: !DIImportedEntity
|