| 1 |
// This test checks that explicitly building the same module from different |
| 2 |
// working directories results in the same PCM contents. |
| 3 |
|
| 4 |
// RUN: rm -rf %t |
| 5 |
// RUN: split-file %s %t |
| 6 |
// RUN: mkdir %t/one |
| 7 |
// RUN: mkdir %t/two |
| 8 |
|
| 9 |
//--- module.modulemap |
| 10 |
module M { header "M.h" } |
| 11 |
|
| 12 |
//--- M.h |
| 13 |
|
| 14 |
// RUN: cd %t/one && %clang_cc1 -fmodules -emit-module %t/module.modulemap -fmodule-name=M -o %t/M_one.pcm |
| 15 |
// RUN: cd %t/two && %clang_cc1 -fmodules -emit-module %t/module.modulemap -fmodule-name=M -o %t/M_two.pcm |
| 16 |
|
| 17 |
// RUN: diff %t/M_one.pcm %t/M_two.pcm |