]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - test/Rewriter/rewrite-protocol-type-1.m
Vendor import of clang release_38 branch r258549:
[FreeBSD/FreeBSD.git] / test / Rewriter / rewrite-protocol-type-1.m
1 // RUN: %clang_cc1 -rewrite-objc -fobjc-runtime=macosx-fragile-10.5  %s -o -
2
3 @protocol MyProto1 
4 @end
5
6 @protocol MyProto2
7 @end
8
9 @interface INTF @end
10
11 INTF <MyProto1> *g1;
12
13 INTF <MyProto1, MyProto2> *g2, *g3;
14
15 INTF <MyProto1> * Func(INTF <MyProto1> *p2, INTF<MyProto1> *p3, INTF *p4, INTF<MyProto1> *p5)
16 {
17         return p2;
18 }
19
20 INTF <MyProto1, MyProto2> * Func1(INTF *p2, INTF<MyProto1, MyProto2> *p3, INTF *p4, INTF<MyProto1> *p5)
21 {
22         return p3;
23 }
24
25 @interface Foo
26 @property int (*hashFunction)(const void *item, int (*size)(const void *item));
27 @end