linux-packaging-mono/mcs/ilasm/tests/invalid-method.il

34 lines
631 B
Plaintext
Raw Normal View History

// Test for ref to an non-existant method
.assembly extern mscorlib
{
.ver 1:0:5000:0
}
.assembly 'invalid-method'
{
}
.class private auto ansi beforefieldinit test
extends [mscorlib]System.Object
{
.method public hidebysig specialname rtspecialname
instance default void .ctor () cil managed
{
.maxstack 8
IL_0000: ldarg.0
IL_0001: call instance void object::.ctor()
IL_0006: ret
}
.method public hidebysig
instance default void foo () cil managed
{
.maxstack 8
IL_0000: ldarg.0
IL_0001: call instance void class test::bar()
IL_0006: ret
}
}