opnsense-src/test/Rewriter/method-encoding-1.m

19 lines
576 B
Mathematica
Raw Normal View History

2010-01-01 05:34:51 -05:00
// RUN: %clang_cc1 -rewrite-objc %s -o -
2009-06-02 13:58:47 -04:00
@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
2009-10-14 14:03:49 -04:00
- (char *) MyMeth : (double) arg1 : (char *[12]) arg2{ return 0; }
2009-06-02 13:58:47 -04:00
- (void) MyProtoMeth : (int **) arg1 : (void*) arg2 {}
+ (void) MyProtoMeth : (int **) arg1 : (void*) arg2 {}
2009-10-14 14:03:49 -04:00
- (id) address:(void *)location with:(unsigned **)arg2{ return 0; }
2009-06-02 13:58:47 -04:00
@end