[sdks] Fix README.md
[mono-project.git] / mcs / tests / gtest-449.cs
blob73fbbcd56629f92ff3ec994fa8b49fb3a3b65afa
1 // Compiler options: -platform:anycpu
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;