Reduce TLS accesses. (#11487)
[mono-project.git] / mono / tests / arraylist-clone.cs
blobf8832828d2852a1dee2d7f85bf4c58f4cfaf0b7f
3 using System.IO;
4 using System;
5 using System.Collections;
7 namespace T {
8 public class T {
9 string name="unset";
11 T(string n) {
12 name=n;
15 public static int Main () {
16 ArrayList tlist=new ArrayList(), newlist;
17 T[] tarray = new T [2];
18 T t1=new T("t1");
19 T t2=new T("t2");
20 tlist.Add(t1);
21 tlist.Add(t2);
23 newlist=(ArrayList)tlist.Clone();
24 newlist.CopyTo (tarray);
26 if (tarray [0].name != "t1")
27 return 1;
28 if (tarray [1].name != "t2")
29 return 2;
31 return 0;