1 // FIXME: PR43272
2 // XFAIL: system-windows
3 
4 // RUN: rm -rf %t
5 // RUN: mkdir -p %t
6 // RUN: sed -e "s@TEST_DIR@%/S@g" -e "s@OUT_DIR@%/t@g" %S/Inputs/vfsroot.yaml > %t.yaml
7 // 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
8 // The line above tests that the compiler input file is looked up through VFS.
9 
10 // Test successful include through the VFS.
11 #include "not_real.h"
12 
13 // Test that a file missing from the VFS root is not found, even if it is
14 // discoverable through the real file system. Fatal error should be the last
15 // in the file as it hides other errors.
16 #include "actual_header.h"
17 // CHECK: fatal error: 'actual_header.h' file not found
18 // CHECK: 1 error generated.
19 // CHECK-NOT: error
20