summaryrefslogtreecommitdiff
path: root/clang/test/Modules/inferred-submodules.m
diff options
context:
space:
mode:
Diffstat (limited to 'clang/test/Modules/inferred-submodules.m')
-rw-r--r--clang/test/Modules/inferred-submodules.m15
1 files changed, 15 insertions, 0 deletions
diff --git a/clang/test/Modules/inferred-submodules.m b/clang/test/Modules/inferred-submodules.m
new file mode 100644
index 0000000..bee1cec
--- /dev/null
+++ b/clang/test/Modules/inferred-submodules.m
@@ -0,0 +1,15 @@
+// RUN: rm -rf %t
+// RUN: %clang_cc1 -x objective-c -Wauto-import -fmodule-cache-path %t -fmodules -F %S/Inputs %s -verify
+
+@__experimental_modules_import Module.Sub;
+
+void test_Module_Sub() {
+ int *ip = Module_Sub;
+}
+
+@__experimental_modules_import Module.Buried.Treasure;
+
+void dig() {
+ unsigned *up = Buried_Treasure;
+}
+