1 | // RUN: rm -rf %t |
2 | // 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 |
3 | |
4 | // regular |
5 | @import module_modulemap; |
6 | @import both; |
7 | // framework |
8 | @import Module_ModuleMap_F; |
9 | @import Module_ModuleMap_F.Private; |
10 | @import Both_F; |
11 | @import Inferred; |
12 | |
13 | void test() { |
14 | will_be_found1(); |
15 | wont_be_found1(); // expected-warning{{implicit declaration of function 'wont_be_found1' is invalid in C99}} |
16 | will_be_found2(); |
17 | wont_be_found2(); // expected-warning{{implicit declaration of function 'wont_be_found2' is invalid in C99}} |
18 | } |
19 | |