2012-06-20 14:18:46 +08:00
|
|
|
// RUN: %clang_cc1 -rewrite-objc -fobjc-runtime=macosx-fragile-10.5 %s -o -
|
2007-12-18 05:03:50 +08:00
|
|
|
|
|
|
|
@protocol P
|
|
|
|
- (id<P>) Meth: (id<P>) Arg;
|
|
|
|
@end
|
|
|
|
|
|
|
|
@interface INTF<P>
|
|
|
|
- (id<P>)IMeth;
|
|
|
|
@end
|
|
|
|
|
|
|
|
@implementation INTF
|
2007-12-19 05:33:44 +08:00
|
|
|
- (id<P>)IMeth { return [(id<P>)self Meth: (id<P>)0]; }
|
2009-07-22 08:43:08 +08:00
|
|
|
- (id<P>) Meth : (id<P>) Arg { return 0; }
|
2007-12-18 05:03:50 +08:00
|
|
|
@end
|