Adrian Prantl | c4bb47e | 2015-06-30 17:39:51 +0000 | [diff] [blame] | 1 | // RUN: rm -rf %t |
David Blaikie | af09f4a | 2016-05-03 23:06:40 +0000 | [diff] [blame^] | 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 |
| 3 | |
| 4 | // NOIMPORT-NOT: !DIImportedEntity |
| 5 | // NOIMPORT-NOT: !DIModule |
| 6 | |
| 7 | // RUN: rm -rf %t |
| 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 |
Adrian Prantl | c4bb47e | 2015-06-30 17:39:51 +0000 | [diff] [blame] | 9 | |
Adrian Prantl | 324c03f | 2015-06-30 18:32:50 +0000 | [diff] [blame] | 10 | // CHECK: ![[CU:.*]] = distinct !DICompileUnit |
Adrian Prantl | 748a6cd | 2015-09-08 20:41:52 +0000 | [diff] [blame] | 11 | @import DebugObjC; |
Adrian Prantl | 68448fe | 2015-09-21 17:48:42 +0000 | [diff] [blame] | 12 | // CHECK: !DIImportedEntity(tag: DW_TAG_imported_declaration, scope: ![[CU]], |
David Blaikie | af09f4a | 2016-05-03 23:06:40 +0000 | [diff] [blame^] | 13 | // CHECK-SAME: entity: ![[MODULE:.*]], line: [[@LINE-2]]) |
Adrian Prantl | 68448fe | 2015-09-21 17:48:42 +0000 | [diff] [blame] | 14 | // CHECK: ![[MODULE]] = !DIModule(scope: null, name: "DebugObjC", |
| 15 | // CHECK-SAME: configMacros: "\22-DGREETING=Hello World\22 \22-UNDEBUG\22", |
| 16 | // CHECK-SAME: includePath: "{{.*}}test{{.*}}Modules{{.*}}Inputs", |
| 17 | // CHECK-SAME: isysroot: "/tmp/..") |
| 18 | |
| 19 | |
Douglas Katzman | 3459ce2 | 2015-10-08 04:24:12 +0000 | [diff] [blame] | 20 | // RUN: %clang_cc1 -debug-info-kind=limited -fmodules -fimplicit-module-maps -fmodules-cache-path=%t \ |
Adrian Prantl | 68448fe | 2015-09-21 17:48:42 +0000 | [diff] [blame] | 21 | // RUN: %s -I %S/Inputs -isysroot /tmp/.. -I %t -emit-llvm -o - \ |
| 22 | // RUN: | FileCheck %s --check-prefix=NO-SKEL-CHECK |
| 23 | // NO-SKEL-CHECK: distinct !DICompileUnit |
| 24 | // NO-SKEL-CHECK-NOT: distinct !DICompileUnit |
| 25 | |
Douglas Katzman | 3459ce2 | 2015-10-08 04:24:12 +0000 | [diff] [blame] | 26 | // RUN: %clang_cc1 -debug-info-kind=limited -fmodules -fimplicit-module-maps -fmodules-cache-path=%t \ |
Adrian Prantl | 68448fe | 2015-09-21 17:48:42 +0000 | [diff] [blame] | 27 | // RUN: -fmodule-format=obj -dwarf-ext-refs \ |
| 28 | // RUN: %s -I %S/Inputs -isysroot /tmp/.. -I %t -emit-llvm -o - \ |
| 29 | // RUN: | FileCheck %s --check-prefix=SKEL-CHECK |
| 30 | // SKEL-CHECK: distinct !DICompileUnit |
| 31 | // SKEL-CHECK: distinct !DICompileUnit{{.*}}dwoId |