test-61 test-62 test-63 test-64 test-65 test-66 test-67 test-68 test-69 test-70 \
test-71 test-72 test-73 test-74 test-75 test-77 test-78 test-79 test-80 \
test-81 test-82 test-83 test-84 test-86 test-87 test-88 test-89 test-90 \
- test-91 test-92 test-93 test-94 test-95
+ test-91 test-92 test-93 test-94 test-95 test-96 test-97 test-98
UNSAFE_SOURCES = \
unsafe-1 unsafe-2
return i+j;
}
- public static int Main ()
+ public static int Test1 ()
{
Blah f = new Blah ();
return 0;
else
return 1;
+ }
+
+ public delegate int List (params int [] args);
+
+ public static int Adder (params int [] args)
+ {
+ int total = 0;
+
+ foreach (int i in args)
+ total += i;
+
+ return total;
+ }
+
+ public static int Test2 ()
+ {
+ List my_adder = new List (Adder);
+
+ if (my_adder (1, 2, 3) != 6)
+ return 2;
+
+ return 0;
+ }
+
+ public static int Main ()
+ {
+ int v;
+
+ v = Test1 ();
+ if (v != 0)
+ return v;
+
+ v = Test2 ();
+ if (v != 0)
+ return v;
+ Console.WriteLine ("All tests pass");
+ return 0;
}
}