[metadata] Fix leaks when handling a few attributes (#16675)
[mono-project.git] / mcs / tests / test-231.cs
blob61c9a0684ac2e5e2359e147682dc35af46d32999
1 class T {
2 static int ret_code = 0;
4 public static int Main ()
6 try {
7 T t = null;
8 t.Foo ();
9 } catch {
10 return ret_code;
12 ret_code = 1;
13 return ret_code;
16 void Foo () {
17 if (this == null) {
18 System.Console.WriteLine ("This isnt anything!?!?");
19 ret_code = 1;