| 1 |
@import DependsOnModule; |
| 2 |
// REQUIRES: x86-registered-target |
| 3 |
// RUN: rm -rf %t-MachO %t-ELF %t-ELF_SPLIT %t-COFF %t-raw |
| 4 |
// RUN: %clang_cc1 -triple=x86_64-apple-darwin -fmodules -fmodule-format=obj -fimplicit-module-maps -fdisable-module-hash -fmodules-cache-path=%t-MachO -F %S/Inputs %s |
| 5 |
// RUN: %clang_cc1 -triple=x86_64-linux-elf -fmodules -fmodule-format=obj -fimplicit-module-maps -fdisable-module-hash -fmodules-cache-path=%t-ELF -F %S/Inputs %s |
| 6 |
// RUN: %clang_cc1 -triple=x86_64-windows-coff -fmodules -fmodule-format=obj -fimplicit-module-maps -fdisable-module-hash -fmodules-cache-path=%t-COFF -F %S/Inputs %s |
| 7 |
// RUN: %clang_cc1 -triple=x86_64-apple-darwin -fmodules -fmodule-format=raw -fimplicit-module-maps -fdisable-module-hash -fmodules-cache-path=%t-raw -F %S/Inputs %s |
| 8 |
|
| 9 |
|
| 10 |
// RUN: llvm-objdump --section-headers %t-MachO/DependsOnModule.pcm %t-ELF/DependsOnModule.pcm %t-COFF/DependsOnModule.pcm | FileCheck %s |
| 11 |
// CHECK: file format mach-o 64-bit x86-64 |
| 12 |
// CHECK: __clangast {{[0-9a-f]+}} {{[0-9a-f]+}} DATA |
| 13 |
// CHECK: file format elf64-x86-64 |
| 14 |
// CHECK: __clangast {{[0-9a-f]+}} {{[0-9a-f]+}} DATA |
| 15 |
// CHECK: file format coff-x86-64 |
| 16 |
// CHECK: clangast {{[0-9a-f]+}} {{[0-9a-f]+}} |
| 17 |
|
| 18 |
// RUN: not llvm-objdump --section-headers %t-raw/DependsOnModule.pcm |
| 19 |
|
| 20 |
// RUN: %clang_cc1 -split-dwarf-output t-split.dwo -triple=x86_64-linux-elf -fmodules -fimplicit-module-maps -fdisable-module-hash -fmodules-cache-path=%t-ELF_SPLIT -F %S/Inputs %s -o %t-split.o |