1 // RUN: rm -rf %t
2 // RUN: %clang_cc1 -x objective-c -fmodule-cache-path %t -fauto-module-import -I %S/Inputs/normal-module-map %s -verify
3 
4 #include "Umbrella/Umbrella.h"
5 
6 int getUmbrella() {
7   return umbrella;
8 }
9 
10 __import_module__ Umbrella2;
11 
12 // FIXME: The expected error here is temporary, since we don't yet have the
13 // logic to build a module from a module map.
14 #include "a1.h" // expected-error{{module 'libA' not found}}
15 #include "b1.h"
16 #include "nested/nested2.h"
17 
18 int test() {
19   return a1 + b1 + nested2;
20 }
21