1 | // REQUIRES: shell |
2 | // RUN: rm -rf %t && mkdir -p %t |
3 | // RUN: echo "void funcA(void);" >> %t/a.h |
4 | |
5 | // 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 |
6 | // ERROR: virtual filesystem overlay file '{{.*}}' not found |
7 | // RUN: find %t/mcp -name "A-*.pcm" | count 1 |
8 | |
9 | // RUN: sed -e "s:INPUT_DIR:%S/Inputs:g" -e "s:OUT_DIR:%t:g" %S/Inputs/MissingVFS/vfsoverlay.yaml > %t/vfs.yaml |
10 | // RUN: %clang_cc1 -fmodules -fimplicit-module-maps -fmodules-cache-path=%t/mcp -I %S/Inputs/MissingVFS %s -fsyntax-only -ivfsoverlay %t/vfs.yaml |
11 | // RUN: find %t/mcp -name "A-*.pcm" | count 1 |
12 | |
13 | @import A; |
14 | void test(void) { |
15 | funcA(); |
16 | } |
17 | |