blob: 2ecae8b584a784d2f3a48af9a458a7b2d4d2dd06 [file] [log] [blame]
John McCall260611a2012-06-20 06:18:46 +00001// RUN: %clang_cc1 -rewrite-objc -fobjc-runtime=macosx-fragile-10.5 %s -o -
Fariborz Jahanian61477f72007-12-11 22:50:14 +00002
3@protocol MyProto1
4@end
5
6@protocol MyProto2
7@end
8
9@interface INTF @end
10
11INTF <MyProto1> *g1;
12
13INTF <MyProto1, MyProto2> *g2, *g3;
14
15INTF <MyProto1> * Func(INTF <MyProto1> *p2, INTF<MyProto1> *p3, INTF *p4, INTF<MyProto1> *p5)
16{
17 return p2;
18}
19
20INTF <MyProto1, MyProto2> * Func1(INTF *p2, INTF<MyProto1, MyProto2> *p3, INTF *p4, INTF<MyProto1> *p5)
21{
22 return p3;
23}
24
Fariborz Jahaniand0502402010-01-21 17:36:00 +000025@interface Foo
26@property int (*hashFunction)(const void *item, int (*size)(const void *item));
27@end