brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1011 B · 8efa66a Raw
15 lines · c
1#include "a.h"2 3// RUN: rm -rf %t4// RUN: mkdir %t5 6// 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 %s7// 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.pch8// RUN: rm -f %t/modules-cache/LibA.pcm9// 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 %s10// 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 %s11 12// VERIFY: fatal error: module file '{{.*}}LibA.pcm' not found13// INDEX: {{^}}Failure: AST deserialization error occurred{{$}}14 15