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 \ 16// RUN: %t.dir 17// RUN: dsymutil -f -oso-prepend-path=%t.dir \ 18// RUN: -verify \ 19// RUN: -y %p/dummy-debug-map.map -o - \ 20// RUN: | llvm-dwarfdump --debug-info - | FileCheck %s 21// RUN: dsymutil --linker parallel -f -oso-prepend-path=%t.dir \ 22// RUN: -verify \ 23// RUN: -y %p/dummy-debug-map.map -o - \ 24// RUN: | llvm-dwarfdump --debug-info - | FileCheck %s 25 26#include "Empty.h" 27int main() { 28 return 0; 29} 30 31// The empty CU from the pcm should not get copied into the dSYM. 32// Check that module name occured only once. 33// CHECK: "Empty" 34// CHECK-NOT: "Empty" 35