blob: aeb569b87230e22163f5961dffe02d82d0a07809 [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 Gregor65f3b5e2011-11-11 22:18:48 +00004// FIXME: The expected error here is temporary, since we don't yet have the
5// logic to build a module from a module map.
Douglas Gregor484535e2011-11-11 23:20:24 +00006#include "Umbrella/Umbrella.h"
7
8int getUmbrella() {
9 return umbrella;
10}
11
Douglas Gregor65f3b5e2011-11-11 22:18:48 +000012#include "a1.h" // expected-error{{module 'libA' not found}}
Douglas Gregora30cfe52011-11-11 19:10:28 +000013#include "b1.h"
14#include "nested/nested2.h"
15
16int test() {
17 return a1 + b1 + nested2;
18}