brintos

brintos / llvm-project-archived public Read only

0
0
Text · 535 B · af8b743 Raw
18 lines · c
1// This test checks that explicitly building the same module from different2// working directories results in the same PCM contents.3 4// RUN: rm -rf %t5// RUN: split-file %s %t6// RUN: mkdir %t/one7// RUN: mkdir %t/two8 9//--- module.modulemap10module M { header "M.h" }11 12//--- M.h13 14// RUN: cd %t/one && %clang_cc1 -fmodules -emit-module %t/module.modulemap -fmodule-name=M -o %t/M_one.pcm15// RUN: cd %t/two && %clang_cc1 -fmodules -emit-module %t/module.modulemap -fmodule-name=M -o %t/M_two.pcm16 17// RUN: diff %t/M_one.pcm %t/M_two.pcm18