2010-02-19 Rodrigo Kumpera <rkumpera@novell.com>
[mcs.git] / tests / gtest-048.cs
blobb1335e2a2bd59733d38c9bd87eb4359bf371d9b8
1 // This fixed a problem in the JIT.
3 public class Stack<T>
5 T[] data;
7 public Stack ()
9 data = new T [10];
12 public void Add (T t)
14 data [0] = t;
18 struct Foo
20 int a;
23 class X
25 static void Main ()
27 Foo foo = new Foo ();
28 Stack<Foo> stack = new Stack<Foo> ();
29 stack.Add (foo);