aboutsummaryrefslogtreecommitdiff
path: root/test/Rewriter/method-encoding-1.m
blob: 05df60291e02d7e0c22d3ab237e6dbd68796f8e4 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// RUN: clang-cc -rewrite-objc %s -o=-

@protocol P1
- (void) MyProtoMeth : (int **) arg1 : (void*) arg2;
+ (void) MyProtoMeth : (int **) arg1 : (void*) arg2;
@end

@interface Intf <P1>
- (char *) MyMeth : (double) arg1 : (char *[12]) arg2;
- (id) address:(void *)location with:(unsigned **)arg2;
@end

@implementation Intf
- (char *) MyMeth : (double) arg1 : (char *[12]) arg2{ return 0; }
- (void) MyProtoMeth : (int **) arg1 : (void*) arg2 {}
+ (void) MyProtoMeth : (int **) arg1 : (void*) arg2 {}
- (id) address:(void *)location with:(unsigned **)arg2{ return 0; }
@end