1*67e74705SXin Li #include "a.h" 2*67e74705SXin Li 3*67e74705SXin Li // RUN: rm -rf %t 4*67e74705SXin Li // RUN: mkdir %t 5*67e74705SXin Li 6*67e74705SXin Li // RUN: %clang_cc1 -x c-header -fmodules -fimplicit-module-maps -fdisable-module-hash -fmodules-cache-path=%t/modules-cache -emit-pch -I %S/Inputs/Headers -o %t/use_LibA.pch %s 7*67e74705SXin Li // RUN: %clang_cc1 -fmodules -fimplicit-module-maps -fdisable-module-hash -fmodules-cache-path=%t/modules-cache -I %S/Inputs/Headers -verify-pch %t/use_LibA.pch 8*67e74705SXin Li // RUN: rm -f %t/modules-cache/LibA.pcm 9*67e74705SXin Li // RUN: not %clang_cc1 -fmodules -fimplicit-module-maps -fdisable-module-hash -fmodules-cache-path=%t/modules-cache -I %S/Inputs/Headers -verify-pch %t/use_LibA.pch 2>&1 | FileCheck -check-prefix=VERIFY %s 10*67e74705SXin Li // RUN: not c-index-test -test-load-source all -x c -fmodules -fimplicit-module-maps -Xclang -fdisable-module-hash -fmodules-cache-path=%t/modules-cache -I %S/Inputs/Headers -include-pch %t/use_LibA.pch %s 2>&1 | FileCheck -check-prefix=INDEX %s 11*67e74705SXin Li 12*67e74705SXin Li // VERIFY: fatal error: module file '{{.*}}LibA.pcm' not found 13*67e74705SXin Li // INDEX: {{^}}Failure: AST deserialization error occurred{{$}} 14*67e74705SXin Li 15