]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - test/Modules/modulemap-locations.m
Vendor import of clang trunk r238337:
[FreeBSD/FreeBSD.git] / test / Modules / modulemap-locations.m
1 // RUN: rm -rf %t 
2 // RUN: %clang_cc1 -fmodules -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
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 }