2011-12-06 09:10:29 +08:00
|
|
|
// RUN: rm -rf %t
|
2012-01-03 23:21:29 +08:00
|
|
|
// RUN: %clang_cc1 -x objective-c -Wauto-import -fmodule-cache-path %t -fmodules -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-03-02 06:07:04 +08:00
|
|
|
@__experimental_modules_import Module.Sub;
|
2011-12-06 09:10:29 +08:00
|
|
|
|
|
|
|
void test_Module_Sub() {
|
|
|
|
int *ip = Module_Sub;
|
|
|
|
}
|
|
|
|
|
2012-03-02 06:07:04 +08:00
|
|
|
@__experimental_modules_import Module.Buried.Treasure;
|
2011-12-06 09:10:29 +08:00
|
|
|
|
|
|
|
void dig() {
|
|
|
|
unsigned *up = Buried_Treasure;
|
|
|
|
}
|
|
|
|
|