1*67e74705SXin Li@import DependsOnModule; 2*67e74705SXin Li// REQUIRES: x86-registered-target 3*67e74705SXin Li// RUN: rm -rf %t-MachO %t-ELF %t-ELF_SPLIT %t-COFF %t-raw 4*67e74705SXin Li// 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*67e74705SXin Li// 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*67e74705SXin Li// 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*67e74705SXin Li// 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*67e74705SXin Li 9*67e74705SXin Li 10*67e74705SXin Li// RUN: llvm-objdump -section-headers %t-MachO/DependsOnModule.pcm %t-ELF/DependsOnModule.pcm %t-COFF/DependsOnModule.pcm | FileCheck %s 11*67e74705SXin Li// CHECK: file format Mach-O 64-bit x86-64 12*67e74705SXin Li// CHECK: __clangast {{[0-9a-f]+}} {{[0-9a-f]+}} DATA 13*67e74705SXin Li// CHECK: file format ELF64-x86-64 14*67e74705SXin Li// CHECK: __clangast {{[0-9a-f]+}} {{[0-9a-f]+}} DATA 15*67e74705SXin Li// CHECK: file format COFF-x86-64 16*67e74705SXin Li// CHECK: clangast {{[0-9a-f]+}} {{[0-9a-f]+}} 17*67e74705SXin Li 18*67e74705SXin Li// RUN: not llvm-objdump -section-headers %t-raw/DependsOnModule.pcm 19*67e74705SXin Li 20*67e74705SXin Li// RUN: %clang_cc1 -split-dwarf-file 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 21