X-Git-Url: https://oss.titaniummirror.com/gitweb?a=blobdiff_plain;f=gcc%2Ftestsuite%2Fobjc%2Fexecute%2Fmany_args_method.m;fp=gcc%2Ftestsuite%2Fobjc%2Fexecute%2Fmany_args_method.m;h=0000000000000000000000000000000000000000;hb=6fed43773c9b0ce596dca5686f37ac3fc0fa11c0;hp=d811082cb86d2a8a0e9078d2e15ae6add24e9d5b;hpb=27b11d56b743098deb193d510b337ba22dc52e5c;p=msp430-gcc.git diff --git a/gcc/testsuite/objc/execute/many_args_method.m b/gcc/testsuite/objc/execute/many_args_method.m deleted file mode 100644 index d811082c..00000000 --- a/gcc/testsuite/objc/execute/many_args_method.m +++ /dev/null @@ -1,56 +0,0 @@ -/* Contributed by Nicola Pero - Fri Mar 9 19:39:15 CET 2001 */ -#include - -/* Test the syntax of methods with many arguments */ - -@interface TestClass -{ - Class isa; -} -+ (int) sumInteger: (int)a withInteger: (int)b; -+ (int) sum: (int)a : (int)b; -+ (int) sumInteger: (int)a withInteger: (int)b withInteger: (int)c; -+ (int) sum: (int)a : (int)b : (int)c; -@end - -@implementation TestClass -+ (int) sumInteger: (int)a withInteger: (int)b -{ - return a + b; -} -+ (int) sum: (int)a : (int)b -{ - return [self sumInteger: a withInteger: b]; -} -+ (int) sumInteger: (int)a withInteger: (int)b withInteger: (int)c -{ - return a + b + c; -} -+ (int) sum: (int)a : (int)b : (int)c -{ - return [self sumInteger: a withInteger: b withInteger: c]; -} -@end - - -int main (void) -{ - if ([TestClass sumInteger: 1 withInteger: 1] != 2) - { - abort (); - } - if ([TestClass sum: 1 : 1] != 2) - { - abort (); - } - if ([TestClass sumInteger: 1 withInteger: 1 withInteger: 1] != 3) - { - abort (); - } - if ([TestClass sum: 1 : 1 : 1] != 3) - { - abort (); - } - - return 0; -}