Add regression test to cmmp store to local.
authorRodrigo Kumpera <kumpera@gmail.com>
Mon, 20 Jun 2011 16:28:28 +0000 (13:28 -0300)
committerRodrigo Kumpera <kumpera@gmail.com>
Mon, 20 Jun 2011 16:29:00 +0000 (13:29 -0300)
mono/tests/verifier/unverifiable_cmmp_local_store.cs [new file with mode: 0644]

diff --git a/mono/tests/verifier/unverifiable_cmmp_local_store.cs b/mono/tests/verifier/unverifiable_cmmp_local_store.cs
new file mode 100644 (file)
index 0000000..76d9bb7
--- /dev/null
@@ -0,0 +1,19 @@
+using System;
+
+class Program
+{
+   static void Test<T> (T[]t)
+   {
+       Foo (b: ref t [0], a: t[0]);
+   }
+
+   static void Foo<T> (T a, ref T b)
+   {
+   }
+
+   public static int Main ()
+   {
+       Test<int>(new [] { 3 });
+       return 0;
+   }
+}
\ No newline at end of file