[interp] Reduce computation under calc_section mutex
[mono-project.git] / mcs / tests / gtest-450.cs
blob8c1d9c8fd200783fd10d2848acc2b5168ed9ab67
1 // Compiler options: -platform:x86
3 using System;
4 using System.Reflection;
6 class Program {
8 public static int Main ()
10 PortableExecutableKinds pekind;
11 ImageFileMachine machine;
13 typeof (Program).Module.GetPEKind (out pekind, out machine);
15 if ((pekind & PortableExecutableKinds.ILOnly) == 0)
16 return 1;
18 if ((pekind & PortableExecutableKinds.Required32Bit) == 0)
19 return 2;
21 if (machine != ImageFileMachine.I386)
22 return 3;
24 return 0;