1 /* Compile with: 2 cat >modules.modulemap <<EOF 3 module Empty { 4 header "Empty.h" 5 } 6 EOF 7 touch Empty.h 8 clang -c -fmodules -fmodule-map-file=modules.modulemap \ 9 -g -gmodules -fmodules-cache-path=. \ 10 -Xclang -fdisable-module-hash modules-empty.m -o 1.o 11 */ 12 13 // RUN: rm -rf %t.dir 14 // RUN: mkdir %t.dir 15 // RUN: cp %p/../Inputs/modules-empty/1.o %p/../Inputs/modules-empty/Empty.pcm %t.dir 16 // RUN: dsymutil -f -oso-prepend-path=%t.dir \ 17 // RUN: -y %p/dummy-debug-map.map -o - \ 18 // RUN: | llvm-dwarfdump --debug-info - | FileCheck %s 19 20 #include "Empty.h" 21 int main() { 22 return 0; 23 } 24 25 // The empty CU from the pcm should not get copied into the dSYM. 26 // CHECK: DW_TAG_compile_unit 27 // CHECK-NOT: DW_TAG_compile_unit 28 29