| 1 |
// RUN: %clang_cc1 -fsyntax-only -verify -Wno-objc-root-class %s |
| 2 |
|
| 3 |
@protocol P |
| 4 |
- (bycopy id)serverPID; // expected-note {{previous declaration is here}} |
| 5 |
- (void)doStuff:(bycopy id)clientId; // expected-note {{previous declaration is here}} |
| 6 |
- (bycopy id)Ok; |
| 7 |
+ (oneway id) stillMore : (byref id)Arg : (bycopy oneway id)Arg1; // expected-note 3 {{previous declaration is here}} |
| 8 |
@end |
| 9 |
|
| 10 |
@interface I <P> |
| 11 |
- (id)Ok; |
| 12 |
@end |
| 13 |
|
| 14 |
@implementation I |
| 15 |
- (id)serverPID { return 0; } // expected-warning {{conflicting distributed object modifiers on return type in implementation of 'serverPID'}} |
| 16 |
- (void)doStuff:(id)clientId { } // expected-warning {{conflicting distributed object modifiers on parameter type in implementation of 'doStuff:'}} |
| 17 |
- (bycopy id)Ok { return 0; } |
| 18 |
+ (id) stillMore : (id)Arg : (bycopy id)Arg1 { return Arg; } // expected-warning {{conflicting distributed object modifiers on return type in implementation of 'stillMore::'}} \ |
| 19 |
// expected-warning 2{{conflicting distributed object modifiers on parameter type in implementation of 'stillMore::'}} |
| 20 |
@end |