1 // Test for custom modifiers (modreq, modopt)
2 // They become part of method signature
3 // test case from bug #80261
5 .assembly extern mscorlib
8 .publickeytoken = (B7 7A 5C 56 19 34 E0 89 ) // .z\V.4..
12 .hash algorithm 0x00008004
15 .module property.dll // GUID = {82691A71-F9F3-480E-96B0-09358B1EDA12}
17 .class public auto ansi beforefieldinit TestMods
18 extends [mscorlib]System.Object
20 .field static int32 modopt ([mscorlib] System.Int32) foo
23 .method public hidebysig specialname rtspecialname
24 instance default void .ctor () cil managed
26 // Method begins at RVA 0x20ec
30 IL_0001: call instance void object::.ctor()
32 } // end of method TestMods::.ctor
35 .method public static hidebysig specialname
36 default int32 modopt ([mscorlib]System.String)
37 modreq ([mscorlib]System.ValueType) get_Prop () cil managed
39 // Method begins at RVA 0x20f4
42 IL_0000: ldc.i4.s 0x0b
44 } // end of method TestMods::get_Prop
47 .method public static hidebysig
48 default int64 modopt ([mscorlib]System.GC)
49 modreq ([mscorlib]System.Exception) 'method' (float64 d) cil
52 // Method begins at RVA 0x20f8
57 IL_0002: ldc.i4.s 0x0f
60 } // end of method TestMods::method
62 .method private static hidebysig default void Main () cil managed
68 .property int32 Prop ()
71 modopt ([mscorlib]System.String)
72 modreq ([mscorlib]System.ValueType)
75 } // end of class TestMods