A test for bug #82277
authorMarek Safar <marek.safar@gmail.com>
Wed, 1 Aug 2007 16:15:09 +0000 (16:15 -0000)
committerMarek Safar <marek.safar@gmail.com>
Wed, 1 Aug 2007 16:15:09 +0000 (16:15 -0000)
svn path=/trunk/mcs/; revision=83211

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

diff --git a/mcs/tests/test-anon-69.cs b/mcs/tests/test-anon-69.cs
new file mode 100644 (file)
index 0000000..61f7497
--- /dev/null
@@ -0,0 +1,30 @@
+using System;
+
+public delegate object TargetAccessDelegate (object user_data);
+
+public class SingleSteppingEngine
+{
+        bool engine_stopped;
+
+        object SendCommand (TargetAccessDelegate target)
+        {
+                return target (null);
+        }
+
+        public void Detach ()
+        {
+                SendCommand (delegate {
+                        if (!engine_stopped) {
+                                throw new InvalidOperationException ();
+                        }
+
+                        return null;
+                });
+        }
+}
+
+class X
+{
+        static void Main ()
+        { }
+}
\ No newline at end of file