Imported Upstream version 3.6.0

Former-commit-id: da6be194a6b1221998fc28233f2503bd61dd9d14
This commit is contained in:
Jo Shields
2014-08-13 10:39:27 +01:00
commit a575963da9
50588 changed files with 8155799 additions and 0 deletions

60
mcs/tests/test-anon-89.cs Normal file
View File

@@ -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;
}
}
}