mirror of
https://github.com/Gericom/teak-llvm.git
synced 2025-06-28 07:49:01 -04:00

This name, while more verbose, plays more nicely with tools that use file extensions to determine file types. The existing spelling 'module.map' will continue to work, but the new spelling will take precedence. In frameworks, this new filename will only go in a new 'Modules' sub-directory. Similarly, add a module.private.modulemap corresponding to module_private.map. llvm-svn: 204261
19 lines
672 B
Objective-C
19 lines
672 B
Objective-C
// RUN: rm -rf %t
|
|
// RUN: %clang_cc1 -fmodules -fmodules-cache-path=%t -I %S/Inputs/ModuleMapLocations/Module_ModuleMap -I %S/Inputs/ModuleMapLocations/Both -F %S/Inputs/ModuleMapLocations -x objective-c -fsyntax-only %s -verify
|
|
|
|
// 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}}
|
|
}
|