[metadata] Fix leaks when handling a few attributes (#16675)
[mono-project.git] / mcs / tests / test-892.cs
blobe57c81cfd743f451e79d7b95069add58d551b878
1 using System.Reflection;
2 using System.Diagnostics;
3 using System;
5 [assembly: AssemblyVersion ("2011.04.0.0")]
6 [assembly: AssemblyFileVersion ("2011.02.0.0")]
8 class X
10 public static int Main ()
12 Assembly executingAssembly = Assembly.GetAssembly (typeof(X));
13 FileVersionInfo fvi = FileVersionInfo.GetVersionInfo (executingAssembly.Location);
14 if (fvi.FileVersion != "2011.02.0.0")
15 return 1;
17 if (fvi.ProductVersion != "2011.02.0.0")
18 return 2;
20 return 0;