annotate clang/test/VFS/module_missing_vfs.m @ 207:2e18cbf3894f

LLVM12
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Tue, 08 Jun 2021 06:07:14 +0900
parents 1d019706d866
children c4bab56944e8
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
150
anatofuz
parents:
diff changeset
1 // RUN: rm -rf %t && mkdir -p %t
anatofuz
parents:
diff changeset
2 // RUN: echo "void funcA(void);" >> %t/a.h
anatofuz
parents:
diff changeset
3
anatofuz
parents:
diff changeset
4 // RUN: not %clang_cc1 -fmodules -fimplicit-module-maps -fmodules-cache-path=%t/mcp -I %S/Inputs/MissingVFS %s -fsyntax-only -ivfsoverlay %t/vfs.yaml 2>&1 | FileCheck %s -check-prefix=ERROR
anatofuz
parents:
diff changeset
5 // ERROR: virtual filesystem overlay file '{{.*}}' not found
anatofuz
parents:
diff changeset
6 // RUN: find %t/mcp -name "A-*.pcm" | count 1
anatofuz
parents:
diff changeset
7
anatofuz
parents:
diff changeset
8 // RUN: sed -e "s@INPUT_DIR@%{/S:regex_replacement}/Inputs@g" -e "s@OUT_DIR@%{/t:regex_replacement}@g" %S/Inputs/MissingVFS/vfsoverlay.yaml > %t/vfs.yaml
anatofuz
parents:
diff changeset
9 // RUN: %clang_cc1 -fmodules -fimplicit-module-maps -fmodules-cache-path=%t/mcp -I %S/Inputs/MissingVFS %s -fsyntax-only -ivfsoverlay %t/vfs.yaml
anatofuz
parents:
diff changeset
10 // RUN: find %t/mcp -name "A-*.pcm" | count 1
anatofuz
parents:
diff changeset
11
anatofuz
parents:
diff changeset
12 @import A;
anatofuz
parents:
diff changeset
13 void test(void) {
anatofuz
parents:
diff changeset
14 funcA();
anatofuz
parents:
diff changeset
15 }