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