1/* Compile with: 2 cat >modules.modulemap <<EOF 3 module Empty { 4 header "Empty.h" 5 } 6EOF 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: -verify \ 18// RUN: -y %p/dummy-debug-map.map -o - \ 19// RUN: | llvm-dwarfdump --debug-info - | FileCheck %s 20 21#include "Empty.h" 22int main() { 23 return 0; 24} 25 26// The empty CU from the pcm should not get copied into the dSYM. 27// CHECK: DW_TAG_compile_unit 28// CHECK-NOT: DW_TAG_compile_unit 29 30