blob: c87657f5a9ba32b3f3ff10e754da5722e13fec0f [file] [log] [blame]
Douglas Gregora30cfe52011-11-11 19:10:28 +00001// RUN: rm -rf %t
Douglas Gregora081da52011-11-16 20:05:18 +00002// 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
Douglas Gregor65f3b5e2011-11-11 22:18:48 +00006// RUN: %clang_cc1 -x objective-c -fmodule-cache-path %t -fauto-module-import -I %S/Inputs/normal-module-map %s -verify
Douglas Gregoradb97992011-11-16 23:02:25 +00007#include "Umbrella/umbrella_sub.h"
Douglas Gregor484535e2011-11-11 23:20:24 +00008
9int getUmbrella() {
Douglas Gregoradb97992011-11-16 23:02:25 +000010 return umbrella + umbrella_sub;
Douglas Gregor484535e2011-11-11 23:20:24 +000011}
12
Douglas Gregorcf70d782011-11-12 00:05:07 +000013__import_module__ Umbrella2;
14
Douglas Gregora081da52011-11-16 20:05:18 +000015#include "a1.h"
Douglas Gregora30cfe52011-11-11 19:10:28 +000016#include "b1.h"
17#include "nested/nested2.h"
18
19int test() {
20 return a1 + b1 + nested2;
21}