| 1 | // RUN: rm -rf %t |
|---|---|
| 2 | // RUN: %clang -fmodules-cache-path=%t -fmodules -x objective-c -I %S/Inputs -emit-ast -o %t.ast %s |
| 3 | // RUN: %clang_cc1 -ast-print -x ast - < %t.ast | FileCheck %s |
| 4 | |
| 5 | @import import_decl; |
| 6 | // CHECK: struct T |
| 7 | |
| 8 | int main() { |
| 9 | return 0; |
| 10 | } |
| 11 | |
| 12 | // <rdar://problem/15084587> |
| 13 | @interface A |
| 14 | -method; |
| 15 | @end |
| 16 | |
| 17 | void testImport(A *import) { |
| 18 | [import method]; |
| 19 | } |
| 20 |