blob: f801d04a0e78700fe48da827c0f1fc9fd4dbe06a [file] [log] [blame]
Douglas Gregore209e502011-12-06 01:10:29 +00001// RUN: rm -rf %t
Douglas Gregor953a61f2013-02-07 19:01:24 +00002// RUN: %clang_cc1 -x objective-c -Wauto-import -fmodules-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