| Douglas Gregor | a89c5ac | 2011-12-06 01:10:29 +0000 | [diff] [blame] | 1 | // RUN: rm -rf %t |
| Richard Smith | 47972af | 2015-06-16 00:08:24 +0000 | [diff] [blame] | 2 | // RUN: %clang_cc1 -x objective-c -Wauto-import -fmodules-cache-path=%t -fmodules -fimplicit-module-maps -F %S/Inputs %s -verify |
| Andy Gibbs | c6e68da | 2012-10-19 12:44:48 +0000 | [diff] [blame] | 3 | // expected-no-diagnostics |
| Douglas Gregor | a89c5ac | 2011-12-06 01:10:29 +0000 | [diff] [blame] | 4 | |
| Douglas Gregor | c50d492 | 2012-12-11 22:11:52 +0000 | [diff] [blame] | 5 | @import Module.Sub; |
| Douglas Gregor | a89c5ac | 2011-12-06 01:10:29 +0000 | [diff] [blame] | 6 | |
| 7 | void test_Module_Sub() { |
| 8 | int *ip = Module_Sub; |
| 9 | } |
| 10 | |
| Douglas Gregor | c50d492 | 2012-12-11 22:11:52 +0000 | [diff] [blame] | 11 | @import Module.Buried.Treasure; |
| Douglas Gregor | a89c5ac | 2011-12-06 01:10:29 +0000 | [diff] [blame] | 12 | |
| 13 | void dig() { |
| 14 | unsigned *up = Buried_Treasure; |
| 15 | } |
| 16 | |