blob: 73cfe8b675b655a48ea1cd762276e4880ee8fd54 [file] [log] [blame]
Douglas Gregora30cfe52011-11-11 19:10:28 +00001// RUN: rm -rf %t
Douglas Gregor65f3b5e2011-11-11 22:18:48 +00002// RUN: %clang_cc1 -x objective-c -fmodule-cache-path %t -fauto-module-import -I %S/Inputs/normal-module-map %s -verify
Douglas Gregora30cfe52011-11-11 19:10:28 +00003
Douglas Gregor484535e2011-11-11 23:20:24 +00004#include "Umbrella/Umbrella.h"
5
6int getUmbrella() {
7 return umbrella;
8}
9
Douglas Gregorcf70d782011-11-12 00:05:07 +000010__import_module__ Umbrella2;
11
Douglas Gregordb1cde72011-11-16 00:09:06 +000012// FIXME: The expected error here is temporary, since we don't yet have the
13// logic to build a module from a module map.
Douglas Gregor65f3b5e2011-11-11 22:18:48 +000014#include "a1.h" // expected-error{{module 'libA' not found}}
Douglas Gregora30cfe52011-11-11 19:10:28 +000015#include "b1.h"
16#include "nested/nested2.h"
17
18int test() {
19 return a1 + b1 + nested2;
20}