xref: /aosp_15_r20/external/clang/test/PCH/module-hash-difference.m (revision 67e74705e28f6214e480b399dd47ea732279e315)
1*67e74705SXin Li// RUN: rm -rf %t.mcp
2*67e74705SXin Li// RUN: rm -rf %t.err
3*67e74705SXin Li// RUN: %clang_cc1 -emit-pch -o %t.pch %s -I %S/Inputs/modules -fmodules -fimplicit-module-maps -fmodules-cache-path=%t.mcp
4*67e74705SXin Li// RUN: not %clang_cc1 -fsyntax-only -include-pch %t.pch %s -I %S/Inputs/modules -fmodules -fimplicit-module-maps -fmodules-cache-path=%t.mcp -fdisable-module-hash 2> %t.err
5*67e74705SXin Li// RUN: FileCheck -input-file=%t.err %s
6*67e74705SXin Li
7*67e74705SXin Li// CHECK: error: PCH was compiled with module cache path {{.*}}, but the path is currently {{.*}}
8*67e74705SXin Li@import Foo;
9