projects
/
mono.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
[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
+++ b/
mcs/tests/test-pattern-11.cs
@@ -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