2014-03-20 04:23:34 +08:00
|
|
|
// RUN: rm -rf %t
|
2017-12-22 10:53:30 +08:00
|
|
|
// RUN: %clang_cc1 -fmodules -fimplicit-module-maps -fmodules-cache-path=%t -I %S/Inputs/ModuleMapLocations/Module_ModuleMap -I %S/Inputs/ModuleMapLocations/Both -F %S/Inputs/ModuleMapLocations -I %S/Inputs/ModuleMapLocations -F %S/Inputs -x objective-c -fsyntax-only %s -verify -Wno-private-module
|
2014-03-20 04:23:34 +08:00
|
|
|
|
|
|
|
// regular
|
|
|
|
@import module_modulemap;
|
|
|
|
@import both;
|
|
|
|
// framework
|
|
|
|
@import Module_ModuleMap_F;
|
|
|
|
@import Module_ModuleMap_F.Private;
|
|
|
|
@import Both_F;
|
|
|
|
@import Inferred;
|
|
|
|
|
|
|
|
void test() {
|
|
|
|
will_be_found1();
|
|
|
|
wont_be_found1(); // expected-warning{{implicit declaration of function 'wont_be_found1' is invalid in C99}}
|
|
|
|
will_be_found2();
|
|
|
|
wont_be_found2(); // expected-warning{{implicit declaration of function 'wont_be_found2' is invalid in C99}}
|
|
|
|
}
|