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