1 // RUN: rm -rf %t
2 // FIXME: Eventually, we should be able to remove these explicit module creation lines
3 // RUN: %clang_cc1 -x objective-c -fmodule-cache-path %t -fmodule-name=libA -emit-module-from-map %S/Inputs/normal-module-map/module.map
4 // RUN: %clang_cc1 -x objective-c -fmodule-cache-path %t -fmodule-name=libB -emit-module-from-map %S/Inputs/normal-module-map/module.map
5 // RUN: %clang_cc1 -x objective-c -fmodule-cache-path %t -fmodule-name=libNested -emit-module-from-map %S/Inputs/normal-module-map/nested/module.map
6 // RUN: %clang_cc1 -x objective-c -fmodule-cache-path %t -fauto-module-import -I %S/Inputs/normal-module-map %s -verify
7 #include "Umbrella/umbrella_sub.h"
8 
9 int getUmbrella() {
10   return umbrella + umbrella_sub;
11 }
12 
13 __import_module__ Umbrella2;
14 
15 #include "a1.h"
16 #include "b1.h"
17 #include "nested/nested2.h"
18 
19 int test() {
20   return a1 + b1 + nested2;
21 }
22