add opensuse toolchain support, patch by Ismail Donmez!
[clang/stm8.git] / test / Rewriter / undecl-objc-h.m
bloba60d81024ce20a8fc9b1e0ca91cde1402bac2df6
1 // RUN: %clang_cc1 -rewrite-objc %s -o -
3 typedef struct S {
4         int * pint;
5         int size;
6 }NSRec;
8 @interface SUPER
9 - (NSRec) MainMethod : (NSRec) Arg1 : (NSRec) Arg2;
10 @end
12 @interface MyDerived : SUPER
14         NSRec d;
16 - (int) instanceMethod;
17 - (int) another : (int) arg;
18 - (NSRec) MainMethod : (NSRec) Arg1 : (NSRec) Arg2;
19 @end
21 @implementation MyDerived 
22 - (int) instanceMethod {
23   return [self another : [self MainMethod : d : d].size];
26 - (int) another : (int) arg { return arg; }
27 - (NSRec) MainMethod : (NSRec) Arg1 : (NSRec) Arg2 { return Arg2; }
28 @end