brintos

brintos / llvm-project-archived public Read only

0
0
Text · 980 B · 2cfed54 Raw
35 lines · plain
1/* Compile with:2   cat >modules.modulemap <<EOF3     module Empty {4       header "Empty.h"5     }6EOF7   touch Empty.h8   clang -c -fmodules -fmodule-map-file=modules.modulemap \9     -g -gmodules -fmodules-cache-path=. \10     -Xclang -fdisable-module-hash modules-empty.m -o 1.o11*/12 13// RUN: rm -rf %t.dir14// RUN: mkdir %t.dir15// RUN: cp %p/../Inputs/modules-empty/1.o %p/../Inputs/modules-empty/Empty.pcm \16// RUN: %t.dir17// 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 %s21// 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 %s25 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