Otherwise including a header in your source file that is not included by framework's umbrella header will silently add an empty submodule with that name. is automatically translated to @import Foo.NotInModule; which then would have succeeded because the inferred module map contained an empty submodule called NotInModule. llvm-svn: 207024
8 lines
239 B
Objective-C
8 lines
239 B
Objective-C
// RUN: rm -rf %t
|
|
// RUN: %clang_cc1 -fmodules -fmodules-cache-path=%t -F %S/Inputs %s -verify
|
|
#include <Module/NotInModule.h> // expected-warning{{missing submodule 'Module.NotInModule'}}
|
|
|
|
int getNotInModule() {
|
|
return not_in_module;
|
|
}
|