mirror of
https://github.com/Gericom/teak-llvm.git
synced 2025-06-19 11:35:51 -04:00

The warning this inhibits, -Wobjc-root-class, is opt-in for now. However, all clang unit tests that would trigger the warning have been updated to use -Wno-objc-root-class. <rdar://problem/7446698> llvm-svn: 154187
22 lines
1.1 KiB
Objective-C
22 lines
1.1 KiB
Objective-C
// RUN: %clang_cc1 -fsyntax-only -verify -Wno-objc-root-class %s
|
|
// rdar://7076235
|
|
|
|
@protocol P
|
|
- (bycopy id)serverPID; // expected-note {{previous declaration is here}}
|
|
- (void)doStuff:(bycopy id)clientId; // expected-note {{previous declaration is here}}
|
|
- (bycopy id)Ok;
|
|
+ (oneway id) stillMore : (byref id)Arg : (bycopy oneway id)Arg1; // expected-note 3 {{previous declaration is here}}
|
|
@end
|
|
|
|
@interface I <P>
|
|
- (id)Ok;
|
|
@end
|
|
|
|
@implementation I
|
|
- (id)serverPID { return 0; } // expected-warning {{conflicting distributed object modifiers on return type in implementation of 'serverPID'}}
|
|
- (void)doStuff:(id)clientId { } // expected-warning {{conflicting distributed object modifiers on parameter type in implementation of 'doStuff:'}}
|
|
- (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::'}} \
|
|
// expected-warning 2{{conflicting distributed object modifiers on parameter type in implementation of 'stillMore::'}}
|
|
@end
|