etc/services - sync with NetBSD-8
[minix.git] / external / bsd / llvm / dist / clang / test / Index / pch-depending-on-deleted-module.c
blob4e85ff0f96b9f40c8b1ef0df02d55089c967cf45
1 #include "a.h"
3 // RUN: rm -rf %t
4 // RUN: mkdir %t
6 // RUN: %clang_cc1 -x c-header -fmodules -fdisable-module-hash -fmodules-cache-path=%t/modules-cache -emit-pch -I %S/Inputs/Headers -o %t/use_LibA.pch %s
7 // RUN: %clang_cc1 -fmodules -fdisable-module-hash -fmodules-cache-path=%t/modules-cache -I %S/Inputs/Headers -verify-pch %t/use_LibA.pch
8 // RUN: rm -f %t/modules-cache/LibA.pcm
9 // RUN: not %clang_cc1 -fmodules -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 // RUN: not c-index-test -test-load-source all -x c -fmodules -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
12 // VERIFY: fatal error: malformed or corrupted AST file: 'Unable to load module
13 // INDEX: {{^}}Failure: AST deserialization error occurred{{$}}