aboutsummaryrefslogtreecommitdiff
path: root/clang/test/Sema/protocol-id-test-2.m
blob: 525d2cca9e9d148d7829b81a126978a0c00af480 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// RUN: clang -verify %s

@protocol P
@end

@interface INTF<P>
- (void)IMeth;
 - (void) Meth;
@end

@implementation INTF
- (void)IMeth { [(id<P>)self Meth]; }  // expected-warning {{method '-Meth' not found in protocol (return type defaults to 'id')}}
- (void) Meth {}
@end