Adrian Prantl | 85d938a | 2015-09-21 17:48:37 +0000 | [diff] [blame] | 1 | // RUN: rm -rf %t |
Douglas Katzman | 3459ce2 | 2015-10-08 04:24:12 +0000 | [diff] [blame] | 2 | // RUN: %clang_cc1 -fmodules -fmodule-format=obj -debug-info-kind=limited -dwarf-ext-refs \ |
Adrian Prantl | 85d938a | 2015-09-21 17:48:37 +0000 | [diff] [blame] | 3 | // RUN: -fimplicit-module-maps -fmodules-cache-path=%t -I %S/Inputs \ |
David Blaikie | af09f4a | 2016-05-03 23:06:40 +0000 | [diff] [blame] | 4 | // RUN: %s -mllvm -debug-only=pchcontainer -debugger-tuning=lldb 2>&1 | FileCheck %s |
Adrian Prantl | 85d938a | 2015-09-21 17:48:37 +0000 | [diff] [blame] | 5 | // REQUIRES: asserts |
| 6 | |
| 7 | @import diamond_left; |
| 8 | |
Adrian Prantl | a5206ce | 2015-09-22 23:26:43 +0000 | [diff] [blame] | 9 | // Definition of top: |
| 10 | // CHECK: !DICompileUnit({{.*}}dwoId: |
| 11 | // CHECK: !DIFile({{.*}}diamond_top.h |
| 12 | |
| 13 | // Definition of left: |
| 14 | // CHECK: !DICompileUnit({{.*}}dwoId: |
Adrian Prantl | 5649b0e | 2017-07-19 00:09:58 +0000 | [diff] [blame] | 15 | // CHECK: ![[LEFT:[0-9]+]] = !DIFile({{.*}}diamond_left.h |
Adrian Prantl | 85d938a | 2015-09-21 17:48:37 +0000 | [diff] [blame] | 16 | // CHECK: !DIImportedEntity(tag: DW_TAG_imported_declaration, |
Adrian Prantl | 5649b0e | 2017-07-19 00:09:58 +0000 | [diff] [blame] | 17 | // CHECK-SAME: entity: ![[MODULE:.*]], file: ![[LEFT]], line: 3) |
Adrian Prantl | 85d938a | 2015-09-21 17:48:37 +0000 | [diff] [blame] | 18 | // CHECK: ![[MODULE]] = !DIModule(scope: null, name: "diamond_top" |
Adrian Prantl | a5206ce | 2015-09-22 23:26:43 +0000 | [diff] [blame] | 19 | |
| 20 | // Skeleton for top: |
| 21 | // CHECK: !DICompileUnit({{.*}}splitDebugFilename: {{.*}}diamond_top{{.*}}dwoId: |
Adrian Prantl | 85d938a | 2015-09-21 17:48:37 +0000 | [diff] [blame] | 22 | |
David Blaikie | af09f4a | 2016-05-03 23:06:40 +0000 | [diff] [blame] | 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 |