Jo Shields a575963da9 Imported Upstream version 3.6.0
Former-commit-id: da6be194a6b1221998fc28233f2503bd61dd9d14
2014-08-13 10:39:27 +01:00

53 lines
565 B
C#

using System;
class X {
static int i;
static int j;
static void m ()
{
i = 0;
j = 0;
try {
throw new ArgumentException ("Blah");
} catch (ArgumentException){
i = 1;
} catch (Exception){
i = 2;
} finally {
j = 1;
}
}
static int ret (int a)
{
try {
if (a == 1)
throw new Exception ();
return 1;
} catch {
return 2;
}
}
public static int Main ()
{
m ();
if (i != 1)
return 1;
if (j != 1)
return 2;
if (ret (1) != 2)
return 3;
if (ret (10) != 1)
return 4;
return 0;
}
}