| 1 |
// UNSUPPORTED: target={{.*}}-zos{{.*}}, target={{.*}}-aix{{.*}} |
| 2 |
// RUN: cd %S |
| 3 |
// RUN: %clang_cc1 -x objective-c -fmodules -fno-implicit-modules \ |
| 4 |
// RUN: -fmodule-file-home-is-cwd -fmodule-name=libA -emit-module \ |
| 5 |
// RUN: -fmodules-embed-all-files %S/Inputs/normal-module-map/module.modulemap \ |
| 6 |
// RUN: -o %t/mod.pcm |
| 7 |
// RUN: llvm-bcanalyzer --dump --disable-histogram %t/mod.pcm | FileCheck %s |
| 8 |
// RUN: llvm-bcanalyzer --dump --disable-histogram %t/mod.pcm | FileCheck %s --check-prefix=INPUT |
| 9 |
|
| 10 |
// CHECK-NOT: MODULE_DIRECTORY |
| 11 |
// INPUT: <INPUT_FILE {{.*}}/> blob data = 'Inputs{{/|\\}}normal-module-map{{/|\\}}module.modulemap' |
| 12 |
// INPUT: <INPUT_FILE {{.*}}/> blob data = 'Inputs{{/|\\}}normal-module-map{{/|\\}}a2.h' |
| 13 |
// INPUT: <INPUT_FILE {{.*}}/> blob data = 'Inputs{{/|\\}}normal-module-map{{/|\\}}a1.h' |
| 14 |
|
| 15 |
@import libA; |
| 16 |
|
| 17 |
// RUN: cd %t |
| 18 |
// RUN: %clang_cc1 -x objective-c -fmodules -fno-implicit-modules -debug-info-kind=limited \ |
| 19 |
// RUN: -debugger-tuning=lldb -dwarf-ext-refs -fmodule-file-home-is-cwd \ |
| 20 |
// RUN: -fmodule-map-file=%S/Inputs/normal-module-map/module.modulemap \ |
| 21 |
// RUN: -fmodule-file=libA=mod.pcm -emit-llvm -o %t-mod.ll %s |
| 22 |
// RUN: cat %t-mod.ll | FileCheck %s --check-prefix=SKELETON |
| 23 |
|
| 24 |
// SKELETON: !DICompileUnit(language: DW_LANG_ObjC, {{.*}}, splitDebugFilename: "mod.pcm" |