blob: e489bb17e0fd59f13a8f157bbf6a395ec34afbe6 [file] [log] [blame]
Fariborz Jahanian21761c82011-02-21 23:49:15 +00001// RUN: %clang_cc1 -fsyntax-only -verify %s
2// rdar://7076235
3
4@protocol P
5- (bycopy id)serverPID; // expected-note {{previous declaration is here}}
6- (void)doStuff:(bycopy id)clientId; // expected-note {{previous declaration is here}}
7- (bycopy id)Ok;
8+ (oneway id) stillMore : (byref id)Arg : (bycopy oneway id)Arg1; // expected-note 3 {{previous declaration is here}}
9@end
10
11@interface I <P>
12- (id)Ok;
13@end
14
15@implementation I
16- (id)serverPID { return 0; } // expected-warning {{conflicting distributed object modifiers on return type in implementation of 'serverPID'}}
Matt Beaumont-Gayf565f112011-02-23 19:39:05 +000017- (void)doStuff:(id)clientId { } // expected-warning {{conflicting distributed object modifiers on parameter type in implementation of 'doStuff:'}}
Fariborz Jahanian21761c82011-02-21 23:49:15 +000018- (bycopy id)Ok { return 0; }
19+ (id) stillMore : (id)Arg : (bycopy id)Arg1 { return Arg; } // expected-warning {{conflicting distributed object modifiers on return type in implementation of 'stillMore::'}} \
20 // expected-warning 2{{conflicting distributed object modifiers on patameter type in implementation of 'stillMore::'}}
21@end