aboutsummaryrefslogtreecommitdiff
path: root/clang/test/Modules/modules-cache-path-canonicalization-output.c
blob: ad71b69e5299ec50d96fcb52b9691e083b8dfe73 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// This checks that implicitly-built modules produce identical PCM
// files regardless of the spelling of the same module cache path.

// RUN: rm -rf %t
// RUN: split-file %s %t

// RUN: %clang_cc1 -fmodules -fimplicit-module-maps -fsyntax-only %t/tu.c \
// RUN:   -fmodules-cache-path=%t/cache -fdisable-module-hash
// RUN: mv %t/cache/M.pcm %t/M.pcm
// RUN: %clang_cc1 -fmodules -fimplicit-module-maps -fsyntax-only %t/tu.c \
// RUN:   -fmodules-cache-path=%t/./cache -fdisable-module-hash
// RUN: diff %t/./cache/M.pcm %t/M.pcm

//--- tu.c
#include "M.h"
//--- M.h
//--- module.modulemap
module M { header "M.h" }