add failing test for bnc550722
[mcs.git] / tests / test-anon-89.cs
blob035d1223ecd86b4f2b9a06cdb53fd4480bcfd462
1 using System;
3 class C
5 public delegate void D ();
7 int[] chats;
8 int total;
10 public static int Main ()
12 new C ().Test ();
13 return 0;
16 object GdkWindow
18 get { return null; }
19 set { }
22 public static void Invoke (D d)
26 void Test ()
28 try {
29 if (total < 0)
30 return;
32 int x = 0;
34 Invoke (delegate {
35 try {
36 Invoke (delegate {
37 GdkWindow = null;
38 });
40 total = x;
41 int[] chats = new int[] { 1, 2 };
43 Invoke (delegate {
44 foreach (int chat in chats) {
45 total = chat;
47 });
48 } finally {
49 Invoke (delegate {
50 if (GdkWindow != null) {
51 GdkWindow = null;
53 });
55 });
56 } catch {
57 int x = 9;