1 // RUN: rm -rf %t 2 // RUN: %clang_cc1 -Wauto-import -fmodule-cache-path %t -fmodules -F %S/Inputs -F %S/Inputs/DependsOnModule.framework/Frameworks %s -verify 3 // RUN: %clang_cc1 -x objective-c++ -Wauto-import -fmodule-cache-path %t -fmodules -F %S/Inputs -F %S/Inputs/DependsOnModule.framework/Frameworks %s -verify 4 5 @__experimental_modules_import DependsOnModule; 6 7 void testSubFramework() { 8 float *sf1 = sub_framework; // expected-error{{use of undeclared identifier 'sub_framework'}} 9 } 10 11 @__experimental_modules_import DependsOnModule.SubFramework; 12 13 void testSubFrameworkAgain() { 14 float *sf2 = sub_framework; 15 double *sfo1 = sub_framework_other; 16 } 17 18 #ifdef __cplusplus 19 @__experimental_modules_import DependsOnModule.CXX; 20 21 CXXOnly cxxonly; 22 #endif 23