| 1 |
// This checks that implicitly-built modules produce identical PCM |
| 2 |
// files regardless of the spelling of the same module cache path. |
| 3 |
|
| 4 |
// RUN: rm -rf %t |
| 5 |
// RUN: split-file %s %t |
| 6 |
|
| 7 |
// RUN: %clang_cc1 -fmodules -fimplicit-module-maps -fsyntax-only %t/tu.c \ |
| 8 |
// RUN: -fmodules-cache-path=%t/cache -fdisable-module-hash |
| 9 |
// RUN: mv %t/cache/M.pcm %t/M.pcm |
| 10 |
// RUN: %clang_cc1 -fmodules -fimplicit-module-maps -fsyntax-only %t/tu.c \ |
| 11 |
// RUN: -fmodules-cache-path=%t/./cache -fdisable-module-hash |
| 12 |
// RUN: diff %t/./cache/M.pcm %t/M.pcm |
| 13 |
|
| 14 |
//--- tu.c |
| 15 |
#include "M.h" |
| 16 |
//--- M.h |
| 17 |
//--- module.modulemap |
| 18 |
module M { header "M.h" } |