Jo Shields a575963da9 Imported Upstream version 3.6.0
Former-commit-id: da6be194a6b1221998fc28233f2503bd61dd9d14
2014-08-13 10:39:27 +01:00

27 lines
467 B
C#

// Compiler options: -platform:anycpu
using System;
using System.Reflection;
class Program {
public static int Main ()
{
PortableExecutableKinds pekind;
ImageFileMachine machine;
typeof (Program).Module.GetPEKind (out pekind, out machine);
if ((pekind & PortableExecutableKinds.ILOnly) == 0)
return 1;
if ((pekind & PortableExecutableKinds.Required32Bit) != 0)
return 2;
if (machine != ImageFileMachine.I386)
return 3;
return 0;
}
}