1 | // RUN: rm -rf %t |
2 | // RUN: %clang_cc1 -fmodules -fmodule-format=obj -debug-info-kind=limited -dwarf-ext-refs \ |
3 | // RUN: -fimplicit-module-maps -fmodules-cache-path=%t -I %S/Inputs \ |
4 | // RUN: %s -mllvm -debug-only=pchcontainer -debugger-tuning=lldb 2>&1 | FileCheck %s |
5 | // REQUIRES: asserts |
6 | |
7 | @import diamond_left; |
8 | |
9 | // Definition of top: |
10 | // CHECK: !DICompileUnit({{.*}}dwoId: |
11 | // CHECK: !DIFile({{.*}}diamond_top.h |
12 | |
13 | // Definition of left: |
14 | // CHECK: !DICompileUnit({{.*}}dwoId: |
15 | // CHECK: ![[LEFT:[0-9]+]] = !DIFile({{.*}}diamond_left.h |
16 | // CHECK: !DIImportedEntity(tag: DW_TAG_imported_declaration, |
17 | // CHECK-SAME: entity: ![[MODULE:.*]], file: ![[LEFT]], line: 3) |
18 | // CHECK: ![[MODULE]] = !DIModule(scope: null, name: "diamond_top" |
19 | |
20 | // Skeleton for top: |
21 | // CHECK: !DICompileUnit({{.*}}splitDebugFilename: {{.*}}diamond_top{{.*}}dwoId: |
22 | |
23 | // RUN: rm -rf %t |
24 | // RUN: %clang_cc1 -fmodules -fmodule-format=obj -debug-info-kind=limited -dwarf-ext-refs \ |
25 | // RUN: -fimplicit-module-maps -fmodules-cache-path=%t -I %S/Inputs \ |
26 | // RUN: %s -mllvm -debug-only=pchcontainer 2>&1 | FileCheck %s --check-prefix=NOIMPORT |
27 | |
28 | // NOIMPORT-NOT: !DIImportedEntity |
29 | |