Emit\NumericIntPtrTests.cs (172)
10075verify(sourceType: "object", destType: "nint", isExplicit: true);
10076verify(sourceType: "string", destType: "nint", noConversion: true);
10077verify(sourceType: "void*", destType: "nint", noConversion: true);
10078verify(sourceType: "delegate*<void>", destType: "nint", noConversion: true);
10079verify(sourceType: "E", destType: "nint", noConversion: true);
10080verify(sourceType: "bool", destType: "nint", noConversion: true);
10081verify(sourceType: "sbyte", destType: "nint");
10082verify(sourceType: "byte", destType: "nint");
10083verify(sourceType: "short", destType: "nint");
10084verify(sourceType: "ushort", destType: "nint");
10085verify(sourceType: "int", destType: "nint");
10086verify(sourceType: "uint", destType: "nint", noConversion: true);
10087verify(sourceType: "long", destType: "nint", isExplicit: true);
10088verify(sourceType: "ulong", destType: "nint", noConversion: true);
10089verify(sourceType: "char", destType: "nint");
10090verify(sourceType: "float", destType: "nint", isExplicit: true);
10091verify(sourceType: "double", destType: "nint", isExplicit: true);
10092verify(sourceType: "decimal", destType: "nint", isExplicit: true);
10093verify(sourceType: "nint", destType: "nint");
10094verify(sourceType: "nuint", destType: "nint", noConversion: true);
10095verify(sourceType: "System.IntPtr", destType: "nint");
10096verify(sourceType: "System.UIntPtr", destType: "nint", noConversion: true);
10099verify(sourceType: "nint", destType: "string", noConversion: true);
10100verify(sourceType: "nint", destType: "void*", noConversion: true);
10101verify(sourceType: "nint", destType: "delegate*<void>", noConversion: true);
10102verify(sourceType: "nint", destType: "E", noConversion: true);
10103verify(sourceType: "nint", destType: "bool", noConversion: true);
10104verify(sourceType: "nint", destType: "sbyte", isExplicit: true);
10105verify(sourceType: "nint", destType: "byte", isExplicit: true);
10106verify(sourceType: "nint", destType: "short", isExplicit: true);
10107verify(sourceType: "nint", destType: "ushort", isExplicit: true);
10108verify(sourceType: "nint", destType: "int", isExplicit: true);
10109verify(sourceType: "nint", destType: "uint", noConversion: true);
10110verify(sourceType: "nint", destType: "long");
10111verify(sourceType: "nint", destType: "ulong", noConversion: true);
10112verify(sourceType: "nint", destType: "char", isExplicit: true);
10113verify(sourceType: "nint", destType: "float");
10114verify(sourceType: "nint", destType: "double");
10115verify(sourceType: "nint", destType: "decimal");
10116verify(sourceType: "nint", destType: "nint");
10117verify(sourceType: "nint", destType: "nuint", noConversion: true);
10118verify(sourceType: "nint", destType: "System.IntPtr");
10119verify(sourceType: "nint", destType: "System.UIntPtr", noConversion: true);
10122verify(sourceType: "object", destType: "nuint", isExplicit: true);
10123verify(sourceType: "string", destType: "nuint", noConversion: true);
10124verify(sourceType: "void*", destType: "nuint", noConversion: true);
10125verify(sourceType: "delegate*<void>", destType: "nuint", noConversion: true);
10126verify(sourceType: "E", destType: "nuint", noConversion: true);
10127verify(sourceType: "bool", destType: "nuint", noConversion: true);
10128verify(sourceType: "sbyte", destType: "nuint", noConversion: true);
10129verify(sourceType: "byte", destType: "nuint");
10130verify(sourceType: "short", destType: "nuint", noConversion: true);
10131verify(sourceType: "ushort", destType: "nuint");
10132verify(sourceType: "int", destType: "nuint", noConversion: true);
10133verify(sourceType: "uint", destType: "nuint");
10134verify(sourceType: "long", destType: "nuint", noConversion: true);
10135verify(sourceType: "ulong", destType: "nuint", isExplicit: true);
10136verify(sourceType: "char", destType: "nuint");
10137verify(sourceType: "float", destType: "nuint", isExplicit: true);
10138verify(sourceType: "double", destType: "nuint", isExplicit: true);
10139verify(sourceType: "decimal", destType: "nuint", isExplicit: true);
10140verify(sourceType: "nint", destType: "nuint", noConversion: true);
10141verify(sourceType: "nuint", destType: "nuint");
10142verify(sourceType: "System.IntPtr", destType: "nuint", noConversion: true);
10143verify(sourceType: "System.UIntPtr", destType: "nuint");
10146verify(sourceType: "nuint", destType: "string", noConversion: true);
10147verify(sourceType: "nuint", destType: "void*", noConversion: true);
10148verify(sourceType: "nuint", destType: "delegate*<void>", noConversion: true);
10149verify(sourceType: "nuint", destType: "E", noConversion: true);
10150verify(sourceType: "nuint", destType: "bool", noConversion: true);
10151verify(sourceType: "nuint", destType: "sbyte", noConversion: true);
10152verify(sourceType: "nuint", destType: "byte", isExplicit: true);
10153verify(sourceType: "nuint", destType: "short", noConversion: true);
10154verify(sourceType: "nuint", destType: "ushort", isExplicit: true);
10155verify(sourceType: "nuint", destType: "int", noConversion: true);
10156verify(sourceType: "nuint", destType: "uint", isExplicit: true);
10157verify(sourceType: "nuint", destType: "long", noConversion: true);
10158verify(sourceType: "nuint", destType: "ulong");
10159verify(sourceType: "nuint", destType: "char", isExplicit: true);
10160verify(sourceType: "nuint", destType: "float");
10161verify(sourceType: "nuint", destType: "double");
10162verify(sourceType: "nuint", destType: "decimal");
10163verify(sourceType: "nuint", destType: "nint", noConversion: true);
10164verify(sourceType: "nuint", destType: "nuint");
10165verify(sourceType: "nuint", destType: "System.IntPtr", noConversion: true);
10166verify(sourceType: "nuint", destType: "System.UIntPtr");
10169verify(sourceType: "object", destType: "System.IntPtr", isExplicit: true);
10170verify(sourceType: "string", destType: "System.IntPtr", noConversion: true);
10171verify(sourceType: "void*", destType: "System.IntPtr", noConversion: true);
10172verify(sourceType: "delegate*<void>", destType: "System.IntPtr", noConversion: true);
10173verify(sourceType: "E", destType: "System.IntPtr", noConversion: true);
10174verify(sourceType: "bool", destType: "System.IntPtr", noConversion: true);
10175verify(sourceType: "sbyte", destType: "System.IntPtr");
10176verify(sourceType: "byte", destType: "System.IntPtr");
10177verify(sourceType: "short", destType: "System.IntPtr");
10178verify(sourceType: "ushort", destType: "System.IntPtr");
10179verify(sourceType: "int", destType: "System.IntPtr");
10180verify(sourceType: "uint", destType: "System.IntPtr", noConversion: true);
10181verify(sourceType: "long", destType: "System.IntPtr", isExplicit: true);
10182verify(sourceType: "ulong", destType: "System.IntPtr", noConversion: true);
10183verify(sourceType: "char", destType: "System.IntPtr");
10184verify(sourceType: "float", destType: "System.IntPtr", isExplicit: true);
10185verify(sourceType: "double", destType: "System.IntPtr", isExplicit: true);
10186verify(sourceType: "decimal", destType: "System.IntPtr", isExplicit: true);
10187verify(sourceType: "nint", destType: "System.IntPtr");
10188verify(sourceType: "nuint", destType: "System.IntPtr", noConversion: true);
10189verify(sourceType: "System.IntPtr", destType: "System.IntPtr");
10190verify(sourceType: "System.UIntPtr", destType: "System.IntPtr", noConversion: true);
10193verify(sourceType: "System.IntPtr", destType: "string", noConversion: true);
10194verify(sourceType: "System.IntPtr", destType: "void*", noConversion: true);
10195verify(sourceType: "System.IntPtr", destType: "delegate*<void>", noConversion: true);
10196verify(sourceType: "System.IntPtr", destType: "E", noConversion: true);
10197verify(sourceType: "System.IntPtr", destType: "bool", noConversion: true);
10198verify(sourceType: "System.IntPtr", destType: "sbyte", isExplicit: true);
10199verify(sourceType: "System.IntPtr", destType: "byte", isExplicit: true);
10200verify(sourceType: "System.IntPtr", destType: "short", isExplicit: true);
10201verify(sourceType: "System.IntPtr", destType: "ushort", isExplicit: true);
10202verify(sourceType: "System.IntPtr", destType: "int", isExplicit: true);
10203verify(sourceType: "System.IntPtr", destType: "uint", noConversion: true);
10204verify(sourceType: "System.IntPtr", destType: "long");
10205verify(sourceType: "System.IntPtr", destType: "ulong", noConversion: true);
10206verify(sourceType: "System.IntPtr", destType: "char", isExplicit: true);
10207verify(sourceType: "System.IntPtr", destType: "float");
10208verify(sourceType: "System.IntPtr", destType: "double");
10209verify(sourceType: "System.IntPtr", destType: "decimal");
10210verify(sourceType: "System.IntPtr", destType: "nint");
10211verify(sourceType: "System.IntPtr", destType: "nuint", noConversion: true);
10212verify(sourceType: "System.IntPtr", destType: "System.IntPtr");
10213verify(sourceType: "System.IntPtr", destType: "System.UIntPtr", noConversion: true);
10216verify(sourceType: "object", destType: "System.UIntPtr", isExplicit: true);
10217verify(sourceType: "string", destType: "System.UIntPtr", noConversion: true);
10218verify(sourceType: "void*", destType: "System.UIntPtr", noConversion: true);
10219verify(sourceType: "delegate*<void>", destType: "System.UIntPtr", noConversion: true);
10220verify(sourceType: "E", destType: "System.UIntPtr", noConversion: true);
10221verify(sourceType: "bool", destType: "System.UIntPtr", noConversion: true);
10222verify(sourceType: "sbyte", destType: "System.UIntPtr", noConversion: true);
10223verify(sourceType: "byte", destType: "System.UIntPtr");
10224verify(sourceType: "short", destType: "System.UIntPtr", noConversion: true);
10225verify(sourceType: "ushort", destType: "System.UIntPtr");
10226verify(sourceType: "int", destType: "System.UIntPtr", noConversion: true);
10227verify(sourceType: "uint", destType: "System.UIntPtr");
10228verify(sourceType: "long", destType: "System.UIntPtr", noConversion: true);
10229verify(sourceType: "ulong", destType: "System.UIntPtr", isExplicit: true);
10230verify(sourceType: "char", destType: "System.UIntPtr");
10231verify(sourceType: "float", destType: "System.UIntPtr", isExplicit: true);
10232verify(sourceType: "double", destType: "System.UIntPtr", isExplicit: true);
10233verify(sourceType: "decimal", destType: "System.UIntPtr", isExplicit: true);
10234verify(sourceType: "nint", destType: "System.UIntPtr", noConversion: true);
10235verify(sourceType: "nuint", destType: "System.UIntPtr");
10236verify(sourceType: "System.IntPtr", destType: "System.UIntPtr", noConversion: true);
10237verify(sourceType: "System.UIntPtr", destType: "System.UIntPtr");
10240verify(sourceType: "System.UIntPtr", destType: "string", noConversion: true);
10241verify(sourceType: "System.UIntPtr", destType: "void*", noConversion: true);
10242verify(sourceType: "System.UIntPtr", destType: "delegate*<void>", noConversion: true);
10243verify(sourceType: "System.UIntPtr", destType: "E", noConversion: true);
10244verify(sourceType: "System.UIntPtr", destType: "bool", noConversion: true);
10245verify(sourceType: "System.UIntPtr", destType: "sbyte", noConversion: true);
10246verify(sourceType: "System.UIntPtr", destType: "byte", isExplicit: true);
10247verify(sourceType: "System.UIntPtr", destType: "short", noConversion: true);
10248verify(sourceType: "System.UIntPtr", destType: "ushort", isExplicit: true);
10249verify(sourceType: "System.UIntPtr", destType: "int", noConversion: true);
10250verify(sourceType: "System.UIntPtr", destType: "uint", isExplicit: true);
10251verify(sourceType: "System.UIntPtr", destType: "long", noConversion: true);
10252verify(sourceType: "System.UIntPtr", destType: "ulong");
10253verify(sourceType: "System.UIntPtr", destType: "char", isExplicit: true);
10254verify(sourceType: "System.UIntPtr", destType: "float");
10255verify(sourceType: "System.UIntPtr", destType: "double");
10256verify(sourceType: "System.UIntPtr", destType: "decimal");
10257verify(sourceType: "System.UIntPtr", destType: "nint", noConversion: true);
10258verify(sourceType: "System.UIntPtr", destType: "nuint");
10259verify(sourceType: "System.UIntPtr", destType: "System.IntPtr", noConversion: true);
10260verify(sourceType: "System.UIntPtr", destType: "System.UIntPtr");