1 /* Contributed by Nicola Pero - Fri Aug 30 12:55:37 2002 */
3 #include "../../objc-obj-c++-shared/TestsuiteObject.m"
5 /* Test that calling a method of a nil object results in
6 nothing to happen (but not a crash), and nil to be
9 @interface TestClass : TestsuiteObject
14 - (void) testVoidWithA: (int)a;
15 - (id) testIdWithA: (id)a;
17 - (void) testVoidWithA: (int)a andB: (int)b;
18 - (id) testIdWithA: (id)g andB: (id)b;
20 - (void) voidSum: (int)firstNumber, ...;
21 - (id) sum: (int)firstNumber, ...;
31 if ([t testId] != nil)
36 [t testVoidWithA: 234];
38 if ([t testIdWithA: t] != nil)
43 [t testVoidWithA: 12004 andB: -123];
45 if ([t testIdWithA: t andB: nil] != nil)
51 [t voidSum: 1, -2, 3, -4, 5, -6, 7, -8, 9, -10,
52 11, -12, 13, -14, 15, -16, 17, -18, 19, -20];
54 if ([t sum: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10,
55 11, 12, 13, 14, 15, 16, 17, 18, 19, 20] != nil)