blob: aeb4aa467c22e9c03afbaac0a1b95dee06370a09 [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
Douglas Gregore209e502011-12-06 01:10:29 +00003
Douglas Gregor5948ae12012-01-03 18:04:46 +00004@import Module.Sub;
Douglas Gregore209e502011-12-06 01:10:29 +00005
6void test_Module_Sub() {
7 int *ip = Module_Sub;
8}
9
Douglas Gregor5948ae12012-01-03 18:04:46 +000010@import Module.Buried.Treasure;
Douglas Gregore209e502011-12-06 01:10:29 +000011
12void dig() {
13 unsigned *up = Buried_Treasure;
14}
15