2011-12-06 09:10:29 +08:00
|
|
|
// RUN: rm -rf %t
|
2015-06-16 08:08:24 +08:00
|
|
|
// RUN: %clang_cc1 -x objective-c -Wauto-import -fmodules-cache-path=%t -fmodules -fimplicit-module-maps -F %S/Inputs %s -verify
|
2012-10-19 20:44:48 +08:00
|
|
|
// expected-no-diagnostics
|
2011-12-06 09:10:29 +08:00
|
|
|
|
2012-12-12 06:11:52 +08:00
|
|
|
@import Module.Sub;
|
2011-12-06 09:10:29 +08:00
|
|
|
|
|
|
|
void test_Module_Sub() {
|
|
|
|
int *ip = Module_Sub;
|
|
|
|
}
|
|
|
|
|
2012-12-12 06:11:52 +08:00
|
|
|
@import Module.Buried.Treasure;
|
2011-12-06 09:10:29 +08:00
|
|
|
|
|
|
|
void dig() {
|
|
|
|
unsigned *up = Buried_Treasure;
|
|
|
|
}
|
|
|
|
|