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 | 65f3b5e | 2011-11-11 22:18:48 +0000 | [diff] [blame^] | 4 | // FIXME: The expected error here is temporary, since we don't yet have the |
| 5 | // logic to build a module from a module map. |
| 6 | #include "a1.h" // expected-error{{module 'libA' not found}} |
Douglas Gregor | a30cfe5 | 2011-11-11 19:10:28 +0000 | [diff] [blame] | 7 | #include "b1.h" |
| 8 | #include "nested/nested2.h" |
| 9 | |
| 10 | int test() { |
| 11 | return a1 + b1 + nested2; |
| 12 | } |