[metadata] Fix leaks when handling a few attributes (#16675)
[mono-project.git] / mcs / tests / gtest-555.cs
blob057481eb19ff4f1405b24a375d78784cd5bdcac5
1 using System;
3 struct Program
5 static int Test<T> (T o)
7 return o is Program? ? 1 : 2;
10 public static int Main ()
12 if (Test (5) != 2)
13 return 1;
15 Program? a = new Program ();
16 if (Test (a) != 1)
17 return 2;
19 return 0;