2011-12-07 01:16:41 +08:00
|
|
|
// RUN: rm -rf %t
|
2012-01-14 06:31:52 +08:00
|
|
|
// RUN: %clang_cc1 -Wauto-import -fmodule-cache-path %t -fmodules -F %S/Inputs -F %S/Inputs/DependsOnModule.framework/Frameworks %s -verify
|
|
|
|
// RUN: %clang_cc1 -x objective-c++ -Wauto-import -fmodule-cache-path %t -fmodules -F %S/Inputs -F %S/Inputs/DependsOnModule.framework/Frameworks %s -verify
|
2011-12-07 01:16:41 +08:00
|
|
|
|
2012-12-12 06:11:52 +08:00
|
|
|
@import DependsOnModule;
|
2011-12-07 01:16:41 +08:00
|
|
|
|
|
|
|
void testSubFramework() {
|
|
|
|
float *sf1 = sub_framework; // expected-error{{use of undeclared identifier 'sub_framework'}}
|
|
|
|
}
|
|
|
|
|
2012-12-12 06:11:52 +08:00
|
|
|
@import DependsOnModule.SubFramework;
|
2011-12-07 01:16:41 +08:00
|
|
|
|
|
|
|
void testSubFrameworkAgain() {
|
|
|
|
float *sf2 = sub_framework;
|
|
|
|
double *sfo1 = sub_framework_other;
|
|
|
|
}
|
|
|
|
|
2011-12-31 12:05:44 +08:00
|
|
|
#ifdef __cplusplus
|
2012-12-12 06:11:52 +08:00
|
|
|
@import DependsOnModule.CXX;
|
2011-12-31 12:05:44 +08:00
|
|
|
|
|
|
|
CXXOnly cxxonly;
|
|
|
|
#endif
|