2012-05-17 00:31:58 +08:00
|
|
|
// RUN: rm -rf %t
|
2013-02-08 03:01:24 +08:00
|
|
|
// RUN: %clang -fmodules-cache-path=%t -fmodules -x objective-c -I %S/Inputs -emit-ast -o %t.ast %s
|
2012-10-25 21:56:30 +08:00
|
|
|
// RUN: %clang_cc1 -ast-print -x ast - < %t.ast | FileCheck %s
|
2012-05-17 00:31:58 +08:00
|
|
|
|
2012-12-12 06:11:52 +08:00
|
|
|
@import import_decl;
|
2012-05-17 00:31:58 +08:00
|
|
|
// CHECK: struct T
|
|
|
|
|
|
|
|
int main() {
|
|
|
|
return 0;
|
|
|
|
}
|
2013-11-08 06:55:02 +08:00
|
|
|
|
|
|
|
// <rdar://problem/15084587>
|
|
|
|
@interface A
|
|
|
|
-method;
|
|
|
|
@end
|
|
|
|
|
|
|
|
void testImport(A *import) {
|
|
|
|
[import method];
|
|
|
|
}
|