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