summaryrefslogtreecommitdiffstats
path: root/clang/test/Modules/auto-module-import.c
diff options
context:
space:
mode:
Diffstat (limited to 'clang/test/Modules/auto-module-import.c')
-rw-r--r--clang/test/Modules/auto-module-import.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/clang/test/Modules/auto-module-import.c b/clang/test/Modules/auto-module-import.c
index 4c71f06a841..373c0411bd7 100644
--- a/clang/test/Modules/auto-module-import.c
+++ b/clang/test/Modules/auto-module-import.c
@@ -29,3 +29,13 @@ void testSubframeworkOther() {
void testSubframeworkOtherAgain() {
double *sfo1 = sub_framework_other;
}
+
+void testModuleSubFramework() {
+ char *msf = module_subframework;
+}
+
+#include <Module/../Frameworks/SubFramework.framework/Headers/SubFramework.h> // expected-warning{{treating #include as an import of module 'Module.SubFramework'}}
+
+void testModuleSubFrameworkAgain() {
+ char *msf = module_subframework;
+}
OpenPOWER on IntegriCloud