2 // load-missing.il: Helper class used by load-exceptions.cs
\r
5 .assembly extern mscorlib
\r
7 .publickeytoken = (B7 7A 5C 56 19 34 E0 89 )
\r
14 .assembly extern notFoundAssembly
\r
19 .assembly 'load-missing'
\r
21 .hash algorithm 0x00008004
\r
24 .custom instance void [mscorlib]System.Security.UnverifiableCodeAttribute::.ctor() = ( 01 00 00 00 )
\r
25 .imagebase 0x00400000
\r
26 .file alignment 0x00000200
\r
27 .subsystem 0x0003 // WINDOWS_CUI
\r
28 .corflags 0x00000001 // ILONLY
\r
29 // Image base: 0x03310000
\r
31 .class auto ansi sealed public EmptyDelegate
\r
32 extends [mscorlib]System.MulticastDelegate
\r
34 .method public hidebysig specialname rtspecialname
\r
35 instance void .ctor(object 'object',
\r
36 native int 'method') runtime managed
\r
40 .method public hidebysig newslot virtual
\r
41 instance void Invoke() runtime managed
\r
45 .method public hidebysig newslot virtual
\r
46 instance class [mscorlib]System.IAsyncResult
\r
47 BeginInvoke(class [mscorlib]System.AsyncCallback callback,
\r
48 object 'object') runtime managed
\r
52 .method public hidebysig newslot virtual
\r
53 instance void EndInvoke(class [mscorlib]System.IAsyncResult result) runtime managed
\r
59 .class auto ansi sealed public DelegateWithMissingArgument
\r
60 extends [mscorlib]System.MulticastDelegate
\r
62 .method public hidebysig specialname rtspecialname
\r
63 instance void .ctor(object 'object',
\r
64 native int 'method') runtime managed
\r
68 .method public hidebysig newslot virtual
\r
69 instance void Invoke(class [t]Missing t) runtime managed
\r
73 .method public hidebysig newslot virtual
\r
74 instance class [mscorlib]System.IAsyncResult
\r
75 BeginInvoke(class [mscorlib]System.AsyncCallback callback,
\r
76 object 'object') runtime managed
\r
80 .method public hidebysig newslot virtual
\r
81 instance void EndInvoke(class [mscorlib]System.IAsyncResult result) runtime managed
\r
87 .class public auto ansi beforefieldinit LoadMissing
\r
88 extends [mscorlib]System.Object
\r
91 .method public hidebysig static void missing_class() cil managed
\r
95 .locals init (class [t]Missing.Foo1 V_0)
\r
97 IL_0001: newobj instance void [t]Missing.Foo1::.ctor()
\r
102 .method public hidebysig static void missing_method() cil managed
\r
106 .locals init (class [t]Missing.Foo2 V_0)
\r
108 IL_0001: newobj instance void [t]Missing.Foo2::.ctor()
\r
111 IL_0008: callvirt instance void [t]Missing.Foo2::missing()
\r
116 .method public hidebysig static void missing_ctor() cil managed
\r
120 .locals init (class [t]Missing.Foo2 V_0)
\r
123 IL_0002: newobj instance void [t]Missing.Foo2::.ctor(int32)
\r
128 .method public hidebysig static void missing_call() cil managed
\r
132 .locals init (class [t]Missing.Foo2 V_0)
\r
134 IL_0001: newobj instance void [t]Missing.Foo2::.ctor()
\r
137 IL_0008: callvirt instance void [t]Missing.Foo2::missing()
\r
142 .method public hidebysig static void missing_jmp() cil managed
\r
146 .locals init (class [t]Missing.Foo2 V_0)
\r
148 jmp void [t]Missing.Foo2::static_missing ()
\r
151 .method public hidebysig static void missing_ldftn() cil managed
\r
155 .locals init (class [t]Missing.Foo2 V_0,
\r
156 class EmptyDelegate V_1)
\r
158 IL_0001: newobj instance void [t]Missing.Foo2::.ctor()
\r
161 IL_0008: ldftn instance void [t]Missing.Foo2::missing()
\r
162 IL_000e: newobj instance void EmptyDelegate::.ctor(object,
\r
168 .method public hidebysig static void missing_callvirt() cil managed
\r
172 .locals init (class [t]Missing.Foo5 V_0)
\r
174 IL_0001: newobj instance void [t]Missing.Foo5::.ctor()
\r
177 IL_0008: callvirt instance void [t]Missing.Foo5::missing_virtual()
\r
182 .method public hidebysig static object
\r
183 missing_castclass_helper(object o) cil managed
\r
187 .locals init (object V_0)
\r
190 IL_0002: castclass [t]Missing.Foo1
\r
192 IL_0008: br.s IL_000a
\r
198 .method public hidebysig static void
\r
199 missing_castclass() cil managed
\r
203 .locals init (object V_0)
\r
206 call object LoadMissing::missing_castclass_helper(object)
\r
211 .method public hidebysig static void
\r
212 missing_cpobj () cil managed
\r
215 .locals init (object v_0, object v_1)
\r
219 cpobj [t]Missing.Foo1
\r
223 .method public hidebysig static void
\r
224 missing_initobj () cil managed
\r
227 .locals init (object v_0)
\r
230 initobj [t]Missing.Foo1
\r
234 .method public hidebysig static bool missing_isinst_helper(object o) cil managed
\r
238 .locals init (bool V_0)
\r
241 IL_0002: isinst [t]Missing.Foo1
\r
245 IL_000b: br.s IL_000d
\r
251 .method public hidebysig static void
\r
252 missing_isinst() cil managed
\r
256 .locals init (object V_0)
\r
259 call bool LoadMissing::missing_isinst_helper(object)
\r
264 .method public hidebysig static void missing_ldfld() cil managed
\r
268 .locals init (class [t]Missing.Foo4 V_0,
\r
271 IL_0001: newobj instance void [t]Missing.Foo4::.ctor()
\r
274 IL_0008: ldfld int32 [t]Missing.Foo4::i
\r
281 .method public hidebysig static void missing_ldflda() cil managed
\r
285 .locals init (class [t]Missing.Foo4 V_0,
\r
288 IL_0001: newobj instance void [t]Missing.Foo4::.ctor()
\r
291 IL_0008: ldflda int32 [t]Missing.Foo4::i
\r
301 .method public hidebysig static void missing_ldsfld() cil managed
\r
305 .locals init (int32 V_0)
\r
307 IL_0001: ldsfld int32 [t]Missing.Foo3::i
\r
317 .method public hidebysig static void missing_ldsflda() cil managed
\r
321 .locals init (int32& pinned V_0)
\r
323 IL_0001: ldsflda int32 [t]Missing.Foo3::i
\r
333 .method public hidebysig static void missing_ldtoken_type() cil managed
\r
338 IL_0001: ldtoken [t]Missing.Foo1
\r
339 IL_0006: call class [mscorlib]System.Type [mscorlib]System.Type::GetTypeFromHandle(valuetype [mscorlib]System.RuntimeTypeHandle)
\r
340 IL_000b: call void [mscorlib]System.Console::WriteLine(object)
\r
345 .method public hidebysig static void missing_ldtoken_method() cil managed
\r
350 IL_0008: ldtoken method instance void [t]Missing.Foo2::missing()
\r
355 .method public hidebysig static void missing_assembly_in_fieldref () cil managed
\r
359 stsfld int32 [t]X::a
\r
363 .method public hidebysig static void missing_assembly_in_call () cil managed
\r
366 call void class [t]Gtk.Application::Init()
\r
370 .method public hidebysig static void missing_assembly_in_newobj () cil managed
\r
373 newobj instance void class [mscorlib]System.Dingus::.ctor()
\r
378 .method public hidebysig static void missing_external_type_reference_on_parameter() cil managed
\r
382 call void class [mscorlib]System.String::Trim(class [mscorlib]MissingType)
\r
386 .method public hidebysig static void missing_ldtoken_field() cil managed
\r
391 IL_0008: ldtoken field int32 [t]Missing.Foo4::i
\r
396 .method public hidebysig static void missing_ldvirtftn() cil managed
\r
400 .locals init (class [t]Missing.Foo5 V_0,
\r
401 class EmptyDelegate V_1)
\r
403 IL_0001: newobj instance void [t]Missing.Foo5::.ctor()
\r
407 IL_0009: ldvirtftn instance void [t]Missing.Foo5::missing_virtual()
\r
408 IL_000f: newobj instance void EmptyDelegate::.ctor(object,
\r
414 .method public hidebysig static object missing_newarr_helper() cil managed
\r
418 .locals init (object V_0)
\r
420 IL_0001: ldc.i4.s 10
\r
421 IL_0003: newarr [t]Missing.Foo1
\r
423 IL_0009: br.s IL_000b
\r
429 .method public hidebysig static void missing_newarr() cil managed
\r
434 IL_0001: call object LoadMissing::missing_newarr_helper()
\r
439 .method public hidebysig static void missing_newobj() cil managed
\r
443 .locals init (class [t]Missing.Foo2 V_0)
\r
446 IL_0002: newobj instance void [t]Missing.Foo2::.ctor(int32)
\r
451 .method public hidebysig static void missing_refanyval() cil managed
\r
455 .locals init (int32 v_0)
\r
459 refanyval [t]Missing.Foo1
\r
464 .method public hidebysig static void missing_sizeof() cil managed
\r
469 IL_0001: sizeof [t]Missing.Foo1
\r
474 .method public hidebysig static void missing_stfld() cil managed
\r
478 .locals init (class [t]Missing.Foo4 V_0)
\r
480 IL_0001: newobj instance void [t]Missing.Foo4::.ctor()
\r
484 IL_0009: stfld int32 [t]Missing.Foo4::i
\r
488 .method public hidebysig static void missing_stsfld() cil managed
\r
494 IL_0002: stsfld int32 [t]Missing.Foo3::i
\r
498 .method public hidebysig static void missing_unbox () cil managed
\r
503 unbox [t]Missing.Foo6
\r
508 .method public hidebysig static void missing_unbox_any () cil managed
\r
513 unbox.any [t]Missing.Foo6
\r
518 .method public hidebysig static void missing_local () cil managed
\r
521 .locals init (class [t]Missing.Foo1 v_0)
\r
526 .method public static void delegate_target () cil managed
\r
531 .method public hidebysig static void missing_delegate_ctor_argument () cil managed
\r
534 .locals init (class [t]Missing.Foo2 V_0,
\r
535 class EmptyDelegate V_1)
\r
537 IL_0001: newobj instance void LoadMissing::.ctor()
\r
540 IL_0008: ldftn void LoadMissing::delegate_target()
\r
541 IL_000e: newobj instance void DelegateWithMissingArgument::.ctor(object,
\r
547 .method public hidebysig specialname rtspecialname
\r
548 instance void .ctor() cil managed
\r
553 IL_0001: call instance void [mscorlib]System.Object::.ctor()
\r
559 .class public auto ansi beforefieldinit BrokenClass
\r
560 extends [t]Missing.Foo1
\r
564 .class public auto ansi CCtorClass
\r
565 extends [mscorlib]System.Object
\r
569 .method public hidebysig specialname rtspecialname
\r
570 instance default void '.ctor' () cil managed
\r
574 IL_0001: call instance void object::'.ctor'()
\r
576 } // end of method CCtorClass::.ctor
\r
579 .method private static specialname rtspecialname
\r
580 default void '.cctor' () cil managed
\r
583 IL_0001: newobj instance void [t]Missing.Foo2::.ctor()
\r
586 IL_0008: callvirt instance void [t]Missing.Foo2::missing()
\r
589 } // end of method CCtorClass::.cctor
\r
592 .method public static hidebysig
\r
593 default void foo () cil managed
\r
597 } // end of method CCtorClass::foo
\r
599 } // end of class CCtorClass
\r
601 .class interface public auto ansi abstract TestIface
\r
603 .method public virtual hidebysig newslot abstract instance default int32 foo () cil managed {}
\r
606 .class public auto ansi beforefieldinit BadMethodOverride1
\r
608 .method public virtual newslot default int32 foo ()
\r
610 .override class TestIface::foo
\r
615 .method public hidebysig specialname rtspecialname instance default void '.ctor' () cil managed
\r
618 call instance void object::'.ctor'()
\r
623 .class public auto ansi beforefieldinit RandomBaseClass
\r
625 .method public virtual newslot default int32 foo ()
\r
631 .method public static int32 foo2 ()
\r
637 .method public hidebysig specialname rtspecialname instance default void '.ctor' () cil managed
\r
640 call instance void object::'.ctor'()
\r
645 .class public auto ansi beforefieldinit BadMethodOverride2
\r
647 .method public virtual newslot default int32 foo ()
\r
649 .override class RandomBaseClass::foo
\r
654 .method public hidebysig specialname rtspecialname instance default void '.ctor' () cil managed
\r
657 call instance void object::'.ctor'()
\r
662 .class public auto ansi beforefieldinit BadMethodOverride3 implements TestIface
\r
664 .method public default int32 foo ()
\r
666 .override class TestIface::foo
\r
671 .method public hidebysig specialname rtspecialname instance default void '.ctor' () cil managed
\r
674 call instance void object::'.ctor'()
\r
679 .class public auto ansi beforefieldinit BadMethodOverride4 extends RandomBaseClass
\r
681 .method public virtual default int32 foo2 ()
\r
683 .override class RandomBaseClass::foo2
\r
688 .method public hidebysig specialname rtspecialname instance default void '.ctor' () cil managed
\r
691 call instance void RandomBaseClass::'.ctor'()
\r
696 .class public auto ansi beforefieldinit BadOverridesDriver
\r
698 .method public static void bad_override1 ()
\r
700 newobj instance void BadMethodOverride1::.ctor()
\r
705 .method public static void bad_override2 ()
\r
707 newobj instance void BadMethodOverride2::.ctor()
\r
712 .method public static void bad_override3 ()
\r
714 newobj instance void BadMethodOverride3::.ctor()
\r
719 .method public static void bad_override4 ()
\r
721 newobj instance void BadMethodOverride4::.ctor()
\r
727 .class public auto ansi beforefieldinit FieldWithMissingType
\r
729 .field public class [t]Missing BrokenField
\r
730 .field public static int32 WorkingField
\r
733 .class public auto ansi beforefieldinit FieldWithMissingCustomAttribute
\r
735 .field public object f
\r
736 .custom instance void class [notFoundAssembly]SomeAttribute::'.ctor'() = (01 00 00 00 ) // ....
\r