blob: 9c8b81536ee94e9ca117dd95e2502a67e3d75192 [file] [log] [blame]
Douglas Gregore209e502011-12-06 01:10:29 +00001// RUN: rm -rf %t
Douglas Gregorc514a8a2012-01-03 15:21:29 +00002// RUN: %clang_cc1 -x objective-c -Wauto-import -fmodule-cache-path %t -fmodules -F %S/Inputs %s -verify
Andy Gibbs8e8fb3b2012-10-19 12:44:48 +00003// expected-no-diagnostics
Douglas Gregore209e502011-12-06 01:10:29 +00004
Douglas Gregor1b257af2012-12-11 22:11:52 +00005@import Module.Sub;
Douglas Gregore209e502011-12-06 01:10:29 +00006
7void test_Module_Sub() {
8 int *ip = Module_Sub;
9}
10
Douglas Gregor1b257af2012-12-11 22:11:52 +000011@import Module.Buried.Treasure;
Douglas Gregore209e502011-12-06 01:10:29 +000012
13void dig() {
14 unsigned *up = Buried_Treasure;
15}
16