1f239a44aSVolodymyr Sapsai // RUN: rm -rf %t 2f239a44aSVolodymyr Sapsai // RUN: mkdir -p %t 332789485SDaniel Sanders // RUN: sed -e "s@TEST_DIR@%{/S:regex_replacement}@g" -e "s@OUT_DIR@%{/t:regex_replacement}@g" %S/Inputs/vfsroot.yaml > %t.yaml 4f239a44aSVolodymyr Sapsai // RUN: not %clang_cc1 -Werror -ivfsoverlay %t.yaml -I %S/Inputs -I /direct-vfs-root-files -fsyntax-only /tests/vfsroot-include.c 2>&1 | FileCheck %s 5f239a44aSVolodymyr Sapsai // The line above tests that the compiler input file is looked up through VFS. 6f239a44aSVolodymyr Sapsai 7f239a44aSVolodymyr Sapsai // Test successful include through the VFS. 8f239a44aSVolodymyr Sapsai #include "not_real.h" 9f239a44aSVolodymyr Sapsai 10f239a44aSVolodymyr Sapsai // Test that a file missing from the VFS root is not found, even if it is 11f239a44aSVolodymyr Sapsai // discoverable through the real file system. Fatal error should be the last 12f239a44aSVolodymyr Sapsai // in the file as it hides other errors. 13f239a44aSVolodymyr Sapsai #include "actual_header.h" 14f239a44aSVolodymyr Sapsai // CHECK: fatal error: 'actual_header.h' file not found 15f239a44aSVolodymyr Sapsai // CHECK: 1 error generated. 16*831591b2SMariya Podchishchaeva // CHECK-NOT: error: 17