Douglas Gregor | 5e3f922 | 2011-12-08 17:01:29 +0000 | [diff] [blame] | 1 | |
| 2 | // RUN: rm -rf %t |
Douglas Gregor | c514a8a | 2012-01-03 15:21:29 +0000 | [diff] [blame] | 3 | // RUN: %clang_cc1 -Wauto-import -fmodule-cache-path %t -fmodules -F %S/Inputs %s -verify |
Andy Gibbs | 8e8fb3b | 2012-10-19 12:44:48 +0000 | [diff] [blame] | 4 | // expected-no-diagnostics |
Douglas Gregor | 5e3f922 | 2011-12-08 17:01:29 +0000 | [diff] [blame] | 5 | |
| 6 | // Note: transitively imports Module.Sub2. |
Douglas Gregor | 1b257af | 2012-12-11 22:11:52 +0000 | [diff] [blame^] | 7 | @import Module.Sub; |
Douglas Gregor | 5e3f922 | 2011-12-08 17:01:29 +0000 | [diff] [blame] | 8 | |
| 9 | int getValue() { |
| 10 | return *Module_Sub + *Module_Sub2; |
| 11 | } |
| 12 | |