aboutsummaryrefslogtreecommitdiff
path: root/test/VFS/include-mixed-real-and-virtual.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/VFS/include-mixed-real-and-virtual.c')
-rw-r--r--test/VFS/include-mixed-real-and-virtual.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/test/VFS/include-mixed-real-and-virtual.c b/test/VFS/include-mixed-real-and-virtual.c
new file mode 100644
index 000000000000..e1f5f952cd4e
--- /dev/null
+++ b/test/VFS/include-mixed-real-and-virtual.c
@@ -0,0 +1,14 @@
+// RUN: rm -rf %t
+// RUN: mkdir -p %t
+// RUN: echo "void baz(void);" > %t/real.h
+// RUN: sed -e "s:INPUT_DIR:%S/Inputs:g" -e "s:OUT_DIR:%t:g" %S/Inputs/vfsoverlay.yaml > %t.yaml
+// RUN: %clang_cc1 -Werror -ivfsoverlay %t.yaml -I %t -fsyntax-only %s
+// REQUIRES: shell
+
+#include "not_real.h"
+#include "real.h"
+
+void foo() {
+ bar();
+ baz();
+}