2010-06-21 Atsushi Enomoto <atsushi@ximian.com>
[mcs.git] / tests / gtest-450.cs
blob541f5e3d817247782da92ab38278cc85afd86eb4
1 // Compiler options: -platform:x86
3 using System;
4 using System.Reflection;
6 class Program {
8 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;