2 // This test is used for testing the foreach array support
8 static int test_single (int [] a)
18 static int test_continue (int [] a)
33 static int test_break (int [] a)
50 int [] a = new int [10];
51 int [] b = new int [2];
53 for (int i = 0; i < 10; i++)
56 for (int j = 0; j < 2; j++)
59 if (test_single (a) != 145)
62 if (test_single (b) != 101)
65 if (test_continue (a) != 131){
66 Console.WriteLine ("Expecting: 131, got " + test_continue (a));
70 if (test_break (a) != 46){
71 Console.WriteLine ("Expecting: 46, got " + test_break (a));