2012-04-07 02:12:22 +08:00
|
|
|
// RUN: %clang_cc1 -fsyntax-only -verify -Wno-objc-root-class %s
|
2011-02-22 07:49:15 +08:00
|
|
|
// rdar://7076235
|
|
|
|
|
|
|
|
@protocol P
|
|
|
|
- (bycopy id)serverPID; // expected-note {{previous declaration is here}}
|
|
|
|
- (void)doStuff:(bycopy id)clientId; // expected-note {{previous declaration is here}}
|
2011-08-11 01:16:30 +08:00
|
|
|
- (bycopy id)Ok;
|
2011-02-22 07:49:15 +08:00
|
|
|
+ (oneway id) stillMore : (byref id)Arg : (bycopy oneway id)Arg1; // expected-note 3 {{previous declaration is here}}
|
|
|
|
@end
|
|
|
|
|
|
|
|
@interface I <P>
|
2011-08-11 01:16:30 +08:00
|
|
|
- (id)Ok;
|
2011-02-22 07:49:15 +08:00
|
|
|
@end
|
|
|
|
|
|
|
|
@implementation I
|
|
|
|
- (id)serverPID { return 0; } // expected-warning {{conflicting distributed object modifiers on return type in implementation of 'serverPID'}}
|
2011-02-24 03:39:05 +08:00
|
|
|
- (void)doStuff:(id)clientId { } // expected-warning {{conflicting distributed object modifiers on parameter type in implementation of 'doStuff:'}}
|
2011-02-22 07:49:15 +08:00
|
|
|
- (bycopy id)Ok { return 0; }
|
|
|
|
+ (id) stillMore : (id)Arg : (bycopy id)Arg1 { return Arg; } // expected-warning {{conflicting distributed object modifiers on return type in implementation of 'stillMore::'}} \
|
2011-02-24 03:40:41 +08:00
|
|
|
// expected-warning 2{{conflicting distributed object modifiers on parameter type in implementation of 'stillMore::'}}
|
2011-02-22 07:49:15 +08:00
|
|
|
@end
|