summaryrefslogtreecommitdiffstats
path: root/clang/test
diff options
context:
space:
mode:
Diffstat (limited to 'clang/test')
-rw-r--r--clang/test/VFS/Inputs/Foo.framework/Headers/Foo.h0
-rw-r--r--clang/test/VFS/Inputs/Foo.framework/Modules/module.modulemap3
-rw-r--r--clang/test/VFS/Inputs/Foo.h0
-rw-r--r--clang/test/VFS/Inputs/vfsoverlay.yaml3
-rw-r--r--clang/test/VFS/umbrella-mismatch.m8
5 files changed, 14 insertions, 0 deletions
diff --git a/clang/test/VFS/Inputs/Foo.framework/Headers/Foo.h b/clang/test/VFS/Inputs/Foo.framework/Headers/Foo.h
new file mode 100644
index 00000000000..e69de29bb2d
--- /dev/null
+++ b/clang/test/VFS/Inputs/Foo.framework/Headers/Foo.h
diff --git a/clang/test/VFS/Inputs/Foo.framework/Modules/module.modulemap b/clang/test/VFS/Inputs/Foo.framework/Modules/module.modulemap
new file mode 100644
index 00000000000..0aab69f0af4
--- /dev/null
+++ b/clang/test/VFS/Inputs/Foo.framework/Modules/module.modulemap
@@ -0,0 +1,3 @@
+framework module Foo {
+ umbrella header "Foo.h"
+}
diff --git a/clang/test/VFS/Inputs/Foo.h b/clang/test/VFS/Inputs/Foo.h
new file mode 100644
index 00000000000..e69de29bb2d
--- /dev/null
+++ b/clang/test/VFS/Inputs/Foo.h
diff --git a/clang/test/VFS/Inputs/vfsoverlay.yaml b/clang/test/VFS/Inputs/vfsoverlay.yaml
index 331ed333168..5c1380870d5 100644
--- a/clang/test/VFS/Inputs/vfsoverlay.yaml
+++ b/clang/test/VFS/Inputs/vfsoverlay.yaml
@@ -14,6 +14,9 @@
},
{ 'name': 'SomeFramework.framework/Headers/public_header.h', 'type': 'file',
'external-contents': 'INPUT_DIR/public_header.h'
+ },
+ { 'name': 'Foo.framework/Headers/Foo.h', 'type': 'file',
+ 'external-contents': 'INPUT_DIR/Foo.h'
}
]
}
diff --git a/clang/test/VFS/umbrella-mismatch.m b/clang/test/VFS/umbrella-mismatch.m
new file mode 100644
index 00000000000..c73129448c5
--- /dev/null
+++ b/clang/test/VFS/umbrella-mismatch.m
@@ -0,0 +1,8 @@
+// RUN: rm -rf %t
+// RUN: sed -e "s:INPUT_DIR:%S/Inputs:g" -e "s:OUT_DIR:%S/Inputs:g" %S/Inputs/vfsoverlay.yaml > %t.yaml
+// REQUIRES: shell
+
+// RUN: %clang_cc1 -Werror -fmodules -fmodules-cache-path=%t -ivfsoverlay %t.yaml -F %S/Inputs -fsyntax-only %s -verify
+// RUN: %clang_cc1 -Werror -fmodules -fmodules-cache-path=%t -F %S/Inputs -fsyntax-only %s -verify
+// expected-no-diagnostics
+@import Foo;
OpenPOWER on IntegriCloud