|
| 1 | +using System.Runtime.CompilerServices; |
| 2 | +using System.Runtime.InteropServices; |
| 3 | + |
| 4 | +namespace ICSharpCode.Decompiler.Tests.TestCases.Pretty |
| 5 | +{ |
| 6 | + internal class MetadataAttributes |
| 7 | + { |
| 8 | + private class MethodImplAttr |
| 9 | + { |
| 10 | + [MethodImpl(MethodImplOptions.AggressiveInlining)] |
| 11 | + public extern void A(); |
| 12 | +#if NETCORE |
| 13 | + [MethodImpl(MethodImplOptions.AggressiveOptimization)] |
| 14 | + public extern void B(); |
| 15 | +#endif |
| 16 | + [MethodImpl(MethodImplOptions.ForwardRef)] |
| 17 | + public extern void D(); |
| 18 | + [MethodImpl(MethodImplOptions.InternalCall)] |
| 19 | + public extern void E(); |
| 20 | + [MethodImpl(MethodImplOptions.NoInlining)] |
| 21 | + public extern void F(); |
| 22 | + [MethodImpl(MethodImplOptions.NoOptimization)] |
| 23 | + public extern void G(); |
| 24 | + [PreserveSig] |
| 25 | + public extern void H(); |
| 26 | + [MethodImpl(MethodImplOptions.Synchronized)] |
| 27 | + public extern void I(); |
| 28 | + [MethodImpl(MethodImplOptions.Unmanaged)] |
| 29 | + public extern void J(); |
| 30 | + [MethodImpl(MethodImplOptions.AggressiveInlining, MethodCodeType = MethodCodeType.Native)] |
| 31 | + public extern void A1(); |
| 32 | +#if NETCORE |
| 33 | + [MethodImpl(MethodImplOptions.AggressiveOptimization, MethodCodeType = MethodCodeType.Native)] |
| 34 | + public extern void B1(); |
| 35 | +#endif |
| 36 | + [MethodImpl(MethodImplOptions.ForwardRef, MethodCodeType = MethodCodeType.Native)] |
| 37 | + public extern void D1(); |
| 38 | + [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Native)] |
| 39 | + public extern void E1(); |
| 40 | + [MethodImpl(MethodImplOptions.NoInlining, MethodCodeType = MethodCodeType.Native)] |
| 41 | + public extern void F1(); |
| 42 | + [MethodImpl(MethodImplOptions.NoOptimization, MethodCodeType = MethodCodeType.Native)] |
| 43 | + public extern void G1(); |
| 44 | + [MethodImpl(MethodImplOptions.PreserveSig, MethodCodeType = MethodCodeType.Native)] |
| 45 | + public extern void H1(); |
| 46 | + [MethodImpl(MethodImplOptions.Synchronized, MethodCodeType = MethodCodeType.Native)] |
| 47 | + public extern void I1(); |
| 48 | + [MethodImpl(MethodImplOptions.Unmanaged, MethodCodeType = MethodCodeType.Native)] |
| 49 | + public extern void J1(); |
| 50 | + [MethodImpl(MethodImplOptions.AggressiveInlining, MethodCodeType = MethodCodeType.OPTIL)] |
| 51 | + public extern void A2(); |
| 52 | +#if NETCORE |
| 53 | + [MethodImpl(MethodImplOptions.AggressiveOptimization, MethodCodeType = MethodCodeType.OPTIL)] |
| 54 | + public extern void B2(); |
| 55 | +#endif |
| 56 | + [MethodImpl(MethodImplOptions.ForwardRef, MethodCodeType = MethodCodeType.OPTIL)] |
| 57 | + public extern void D2(); |
| 58 | + [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.OPTIL)] |
| 59 | + public extern void E2(); |
| 60 | + [MethodImpl(MethodImplOptions.NoInlining, MethodCodeType = MethodCodeType.OPTIL)] |
| 61 | + public extern void F2(); |
| 62 | + [MethodImpl(MethodImplOptions.NoOptimization, MethodCodeType = MethodCodeType.OPTIL)] |
| 63 | + public extern void G2(); |
| 64 | + [MethodImpl(MethodImplOptions.PreserveSig, MethodCodeType = MethodCodeType.OPTIL)] |
| 65 | + public extern void H2(); |
| 66 | + [MethodImpl(MethodImplOptions.Synchronized, MethodCodeType = MethodCodeType.OPTIL)] |
| 67 | + public extern void I2(); |
| 68 | + [MethodImpl(MethodImplOptions.Unmanaged, MethodCodeType = MethodCodeType.OPTIL)] |
| 69 | + public extern void J2(); |
| 70 | + [MethodImpl(MethodImplOptions.AggressiveInlining, MethodCodeType = MethodCodeType.OPTIL)] |
| 71 | + public extern void A3(); |
| 72 | +#if NETCORE |
| 73 | + [MethodImpl(MethodImplOptions.AggressiveOptimization, MethodCodeType = MethodCodeType.Runtime)] |
| 74 | + public extern void B3(); |
| 75 | +#endif |
| 76 | + [MethodImpl(MethodImplOptions.ForwardRef, MethodCodeType = MethodCodeType.Runtime)] |
| 77 | + public extern void D3(); |
| 78 | + [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)] |
| 79 | + public extern void E3(); |
| 80 | + [MethodImpl(MethodImplOptions.NoInlining, MethodCodeType = MethodCodeType.Runtime)] |
| 81 | + public extern void F3(); |
| 82 | + [MethodImpl(MethodImplOptions.NoOptimization, MethodCodeType = MethodCodeType.Runtime)] |
| 83 | + public extern void G3(); |
| 84 | + [MethodImpl(MethodImplOptions.PreserveSig, MethodCodeType = MethodCodeType.Runtime)] |
| 85 | + public extern void H3(); |
| 86 | + [MethodImpl(MethodImplOptions.Synchronized, MethodCodeType = MethodCodeType.Runtime)] |
| 87 | + public extern void I3(); |
| 88 | + [MethodImpl(MethodImplOptions.Unmanaged, MethodCodeType = MethodCodeType.Runtime)] |
| 89 | + public extern void J3(); |
| 90 | + } |
| 91 | + } |
| 92 | +} |
0 commit comments