annotate clang/test/VFS/vfsroot-include.c @ 207:2e18cbf3894f

LLVM12
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Tue, 08 Jun 2021 06:07:14 +0900
parents 1d019706d866
children 1f2b6ac9f198
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
150
anatofuz
parents:
diff changeset
1 // RUN: rm -rf %t
anatofuz
parents:
diff changeset
2 // RUN: mkdir -p %t
anatofuz
parents:
diff changeset
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
anatofuz
parents:
diff changeset
4 // 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
anatofuz
parents:
diff changeset
5 // The line above tests that the compiler input file is looked up through VFS.
anatofuz
parents:
diff changeset
6
anatofuz
parents:
diff changeset
7 // Test successful include through the VFS.
anatofuz
parents:
diff changeset
8 #include "not_real.h"
anatofuz
parents:
diff changeset
9
anatofuz
parents:
diff changeset
10 // Test that a file missing from the VFS root is not found, even if it is
anatofuz
parents:
diff changeset
11 // discoverable through the real file system. Fatal error should be the last
anatofuz
parents:
diff changeset
12 // in the file as it hides other errors.
anatofuz
parents:
diff changeset
13 #include "actual_header.h"
anatofuz
parents:
diff changeset
14 // CHECK: fatal error: 'actual_header.h' file not found
anatofuz
parents:
diff changeset
15 // CHECK: 1 error generated.
anatofuz
parents:
diff changeset
16 // CHECK-NOT: error