xref: /llvm-project/clang/test/Index/missing_vfs.c (revision 2ac6aca8af70ee4496667587df58f467f5240252)
1 // RUN: c-index-test -test-load-source local %s -ivfsoverlay %t/does-not-exist.yaml > %t.stdout 2> %t.stderr
2 // RUN: FileCheck -check-prefix=STDERR %s < %t.stderr
3 // STDERR: fatal error: virtual filesystem overlay file '{{.*}}' not found
4 // RUN: FileCheck %s < %t.stdout
5 // CHECK: missing_vfs.c:[[@LINE+1]]:6: FunctionDecl=foo:[[@LINE+1]]:6
6 void foo(void);
7