19 lines · c
1// This checks that implicitly-built modules produce identical PCM2// files regardless of the spelling of the same module cache path.3 4// RUN: rm -rf %t5// RUN: split-file %s %t6 7// RUN: %clang_cc1 -fmodules -fimplicit-module-maps -fsyntax-only %t/tu.c \8// RUN: -fmodules-cache-path=%t/cache -fdisable-module-hash9// RUN: mv %t/cache/M.pcm %t/M.pcm10// RUN: %clang_cc1 -fmodules -fimplicit-module-maps -fsyntax-only %t/tu.c \11// RUN: -fmodules-cache-path=%t/./cache -fdisable-module-hash12// RUN: diff %t/./cache/M.pcm %t/M.pcm13 14//--- tu.c15#include "M.h"16//--- M.h17//--- module.modulemap18module M { header "M.h" }19