2010-04-07 Jb Evain <jbevain@novell.com>
[mcs.git] / tests / gtest-449.cs
blob6baeecf137a80cda805980e223bcfad570e6e613
1 // Compiler options: -platform:anycpu
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;