[lld][WebAssembly] Reinstate mistakenly disabled test. NFC
[llvm-project.git] / clang / test / Modules / module-pch-different-cache-path.c
blob8778adc886f719e166d6a1671d7923d9d92a515a
1 // RUN: rm -rf %t
2 // RUN: mkdir %t
3 //
4 // RUN: %clang_cc1 -x objective-c-header -emit-pch %S/Inputs/pch-typedef.h -o %t/pch-typedef.h.gch \
5 // RUN: -fmodules -fimplicit-module-maps -fmodules-cache-path=%t/one
6 //
7 // RUN: not %clang_cc1 -x objective-c -fsyntax-only %s -include-pch %t/pch-typedef.h.gch \
8 // RUN: -fmodules -fimplicit-module-maps -fmodules-cache-path=%t/two 2>&1 \
9 // RUN: | FileCheck %s -check-prefixes=CHECK-ERROR
11 // RUN: %clang_cc1 -x objective-c -fsyntax-only %s -include-pch %t/pch-typedef.h.gch \
12 // RUN: -fmodules -fimplicit-module-maps -fmodules-cache-path=%t/two 2>&1 -fallow-pch-with-different-modules-cache-path \
13 // RUN: | FileCheck %s -check-prefixes=CHECK-SUCCESS -allow-empty
15 pch_int x = 0;
17 // CHECK-ERROR: PCH was compiled with module cache path '{{.*}}', but the path is currently '{{.*}}'
18 // CHECK-SUCCESS-NOT: PCH was compiled with module cache path '{{.*}}', but the path is currently '{{.*}}'