Douglas Gregor | a30cfe5 | 2011-11-11 19:10:28 +0000 | [diff] [blame] | 1 | // RUN: rm -rf %t |
Douglas Gregor | 65f3b5e | 2011-11-11 22:18:48 +0000 | [diff] [blame] | 2 | // RUN: %clang_cc1 -x objective-c -fmodule-cache-path %t -fauto-module-import -I %S/Inputs/normal-module-map %s -verify |
Douglas Gregor | a30cfe5 | 2011-11-11 19:10:28 +0000 | [diff] [blame] | 3 | |
Douglas Gregor | 484535e | 2011-11-11 23:20:24 +0000 | [diff] [blame] | 4 | #include "Umbrella/Umbrella.h" |
| 5 | |
| 6 | int getUmbrella() { |
| 7 | return umbrella; |
| 8 | } |
| 9 | |
Douglas Gregor | cf70d78 | 2011-11-12 00:05:07 +0000 | [diff] [blame] | 10 | __import_module__ Umbrella2; |
| 11 | |
Douglas Gregor | db1cde7 | 2011-11-16 00:09:06 +0000 | [diff] [blame] | 12 | // 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 Gregor | 65f3b5e | 2011-11-11 22:18:48 +0000 | [diff] [blame] | 14 | #include "a1.h" // expected-error{{module 'libA' not found}} |
Douglas Gregor | a30cfe5 | 2011-11-11 19:10:28 +0000 | [diff] [blame] | 15 | #include "b1.h" |
| 16 | #include "nested/nested2.h" |
| 17 | |
| 18 | int test() { |
| 19 | return a1 + b1 + nested2; |
| 20 | } |