xref: /llvm-project/clang/test/VFS/vfsroot-with-overlay.c (revision 0dd49a5628bbe01cecf6516017da59ae44863ab3)
1 // RUN: rm -rf %t
2 // RUN: mkdir -p %t
3 // RUN: sed -e "s@TEST_DIR@%{/S:regex_replacement}@g" -e "s@OUT_DIR@%{/t:regex_replacement}@g" %S/Inputs/vfsroot.yaml > %t.yaml
4 // RUN: sed -e "s@INPUT_DIR@/indirect-vfs-root-files@g" -e "s@OUT_DIR@/overlay-dir@g" %S/Inputs/vfsoverlay.yaml > %t/vfsoverlay.yaml
5 // RUN: %clang_cc1 -Werror -ivfsoverlay %t.yaml -ivfsoverlay /direct-vfs-root-files/vfsoverlay.yaml -I /overlay-dir -fsyntax-only /tests/vfsroot-with-overlay.c
6 
7 #include "not_real.h"
8 
foo(void)9 void foo(void) {
10   bar();
11 }
12