Merge pull request #5714 from alexischr/update_bockbuild
[mono.git] / mono / tests / arraylist.cs
1 using System.Collections;
2
3 namespace Test {
4         public class Test {
5                 public static int Main() {
6                         ArrayList a = new ArrayList (10);
7                         int i = 0;
8                         a.Add (0);
9                         a.Add (1);
10                         a.Add (2);
11                         a.Add (3);
12                         foreach (int elem in a) {
13                                 if (elem != i++)
14                                         return i;
15                         }
16                         return 0;
17                 }
18         }
19 }