Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarek Safar <marek.safar@gmail.com>2009-01-15 18:23:45 +0300
committerMarek Safar <marek.safar@gmail.com>2009-01-15 18:23:45 +0300
commit320c0d901f1a1336a03503733801414d298c7ada (patch)
tree389ea0e8ddd4121dd6260dd39b8b4888b600a3b9 /mcs/tests/test-anon-89.cs
parentd86b37356401aa141d60e8d4f5a5565fc99f9e05 (diff)
New tests.
svn path=/trunk/mcs/; revision=123491
Diffstat (limited to 'mcs/tests/test-anon-89.cs')
-rw-r--r--mcs/tests/test-anon-89.cs60
1 files changed, 60 insertions, 0 deletions
diff --git a/mcs/tests/test-anon-89.cs b/mcs/tests/test-anon-89.cs
new file mode 100644
index 00000000000..035d1223ecd
--- /dev/null
+++ b/mcs/tests/test-anon-89.cs
@@ -0,0 +1,60 @@
+using System;
+
+class C
+{
+ public delegate void D ();
+
+ int[] chats;
+ int total;
+
+ public static int Main ()
+ {
+ new C ().Test ();
+ return 0;
+ }
+
+ object GdkWindow
+ {
+ get { return null; }
+ set { }
+ }
+
+ public static void Invoke (D d)
+ {
+ }
+
+ void Test ()
+ {
+ try {
+ if (total < 0)
+ return;
+
+ int x = 0;
+
+ Invoke (delegate {
+ try {
+ Invoke (delegate {
+ GdkWindow = null;
+ });
+
+ total = x;
+ int[] chats = new int[] { 1, 2 };
+
+ Invoke (delegate {
+ foreach (int chat in chats) {
+ total = chat;
+ }
+ });
+ } finally {
+ Invoke (delegate {
+ if (GdkWindow != null) {
+ GdkWindow = null;
+ }
+ });
+ }
+ });
+ } catch {
+ int x = 9;
+ }
+ }
+}