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

27 lines
608 B
C#

// Compiler options: -warnaserror
namespace System
{
class Int32
{
}
class Program
{
public static int Main ()
{
System.AppDomain.CurrentDomain.TypeResolve += new ResolveEventHandler (CurrentDomain_TypeResolve);
System.Type intType = System.Type.GetType ("System.Int32");
if (intType.AssemblyQualifiedName != "System.Int32, test-816, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")
return 1;
return 0;
}
static System.Reflection.Assembly CurrentDomain_TypeResolve (object sender, ResolveEventArgs args)
{
throw new Exception ("Resolving " + args.Name);
}
}
}