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 #include "Umbrella/Umbrella.h"
4 
5 int getUmbrella() {
6   return umbrella;
7 }
8 
9 __import_module__ Umbrella2;
10 
11 // FIXME: The expected error here is temporary, since we don't yet have the
12 // logic to build a module from a module map.
13 #include "a1.h" // expected-error{{module 'libA' not found}}
14 #include "b1.h"
15 #include "nested/nested2.h"
16 
17 int test() {
18   return a1 + b1 + nested2;
19 }
20