[mcs] Fixes codegen for pattern probing with value-type variables
[mono.git] / mcs / tests / test-pattern-11.cs
diff --git a/mcs/tests/test-pattern-11.cs b/mcs/tests/test-pattern-11.cs
new file mode 100644 (file)
index 0000000..bc88951
--- /dev/null
@@ -0,0 +1,15 @@
+using System;
+
+class X
+{
+       public static int Main ()
+       {
+               object o = null;
+               for (o = "abcd"; o is String s; o = null) {
+                       Console.WriteLine (s);
+               }
+
+               
+               return 0;
+       }
+}
\ No newline at end of file