2 // RUN: %clang_cc1 -Wauto-import -fmodules-cache-path=%t -fmodules -F %S/Inputs -F %S/Inputs/DependsOnModule.framework/Frameworks %s -verify
3 // RUN: %clang_cc1 -x objective-c++ -Wauto-import -fmodules-cache-path=%t -fmodules -F %S/Inputs -F %S/Inputs/DependsOnModule.framework/Frameworks %s -verify
5 @import DependsOnModule;
7 void testSubFramework() {
8 float *sf1 = sub_framework; // expected-error{{use of undeclared identifier 'sub_framework'}}
11 @import DependsOnModule.SubFramework;
13 void testSubFrameworkAgain() {
14 float *sf2 = sub_framework;
15 double *sfo1 = sub_framework_other;
19 @import DependsOnModule.CXX;
24 @import HasSubModules;
26 // expected-warning@Inputs/HasSubModules.framework/Frameworks/Sub.framework/PrivateHeaders/SubPriv.h:1{{treating #include as an import of module 'HasSubModules.Sub.Types'}}
27 #import <HasSubModules/HasSubModulesPriv.h>
29 struct FrameworkSubStruct ss;