New test.
authorMartin Baulig <martin@novell.com>
Wed, 4 Oct 2006 20:45:54 +0000 (20:45 -0000)
committerMartin Baulig <martin@novell.com>
Wed, 4 Oct 2006 20:45:54 +0000 (20:45 -0000)
svn path=/trunk/mcs/; revision=66252

mcs/tests/test-anon-51.cs [new file with mode: 0644]

diff --git a/mcs/tests/test-anon-51.cs b/mcs/tests/test-anon-51.cs
new file mode 100644 (file)
index 0000000..e44d6b5
--- /dev/null
@@ -0,0 +1,14 @@
+using System;\r
+\r
+public delegate void FooDelegate ();\r
+\r
+public class X {\r
+       public static readonly FooDelegate Print = delegate {\r
+               Console.WriteLine ("delegate!");\r
+        };\r
+\r
+       public static void Main ()\r
+       {\r
+               Print ();\r
+       }\r
+}\r