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