diff options
author | Tomáš Rylek <trylek@microsoft.com> | 2021-11-02 01:04:39 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-11-02 01:04:39 +0300 |
commit | c25e91d7855cccdfdf6231b7d2cfac29bea98154 (patch) | |
tree | 8e012c98976841a06b1910b84f7c57028efca97e /src/tests/Loader/classloader | |
parent | be459930685fc666ce8b3d0a94ea0e95818f695f (diff) |
Delete duplicate test projects (#61024)
* _odbgsin / _orelsin are duplicates of the tests _dbgsin / _relsin
in the same folder
* _speed_dbgthisnull / _speed_relthisnull are duplicates of _dbgthisnull
and _relthisnull, respectively
* The b14368 project is a duplicate of JIT\Regression\VS-ia64-JIT\V1.2-M02\b17751\b17751.ilproj
* The jmp_opt and ldftn_opt test projects are duplicates of jmp_ret and
ldftn_ret in the same folder
* The test and test2 projects under 575343 are duplicates of same named
tests under JIT\Regression\CLR-x86-JIT\V2.0-RTM\b598031
* The CctorThrowStaticFieldBFI test is a duplicate of the test
Loader\classloader\TypeInitialization\CctorsWithSideEffects\CctorThrowStaticFieldBFI.ilproj
* The tests under Variance\CoreCLR are duplicates of same-named tests
under Loader\classloader\generics\Variance\Methods
* The nesting4 test is a duplicate of
Loader\classloader\nesting\Tests\nesting4.ilproj
Thanks
Tomas
Diffstat (limited to 'src/tests/Loader/classloader')
12 files changed, 0 insertions, 1283 deletions
diff --git a/src/tests/Loader/classloader/TypeInitialization/CoreCLR/CctorThrowStaticFieldBFI.il b/src/tests/Loader/classloader/TypeInitialization/CoreCLR/CctorThrowStaticFieldBFI.il deleted file mode 100644 index 135508b6399..00000000000 --- a/src/tests/Loader/classloader/TypeInitialization/CoreCLR/CctorThrowStaticFieldBFI.il +++ /dev/null @@ -1,345 +0,0 @@ -// Licensed to the .NET Foundation under one or more agreements. -// The .NET Foundation licenses this file to you under the MIT license. - -.assembly extern System.Console { } - -// Microsoft (R) .NET Framework IL Disassembler. Version 2.0.50103.00 -// Copyright (C) Microsoft Corporation. All rights reserved. - - - -// Metadata version: v2.0.50103 -.assembly extern mscorlib -{ - .publickeytoken = (B7 7A 5C 56 19 34 E0 89 ) // .z\V.4.. - .ver 2:0:0:0 -} -.assembly CctorThrowStaticFieldBFI -{ - .custom instance void [mscorlib]System.Runtime.CompilerServices.CompilationRelaxationsAttribute::.ctor(int32) = ( 01 00 08 00 00 00 00 00 ) - .hash algorithm 0x00008004 - .ver 0:0:0:0 -} -.module CctorThrowStaticFieldBFI.exe -// MVID: {A7BE6B3C-FF8D-43DB-B091-60CBA24AD082} -.imagebase 0x00400000 -.file alignment 0x00000200 -.stackreserve 0x00100000 -.subsystem 0x0003 // WINDOWS_CUI -.corflags 0x00000001 // ILONLY -// Image base: 0x03090000 - - -// =============== CLASS MEMBERS DECLARATION =================== - -.class public auto ansi beforefieldinit A - extends [mscorlib]System.Object -{ - .field public static int32 i - .method private hidebysig specialname rtspecialname static - void .cctor() cil managed - { - // Code size 24 (0x18) - .maxstack 8 - IL_0000: nop - IL_0001: ldstr "In A.cctor" - IL_0006: call void [System.Console]System.Console::WriteLine(string) - IL_000b: nop - IL_000c: ldc.i4.5 - IL_000d: stsfld int32 A::i - IL_0012: newobj instance void [mscorlib]System.Exception::.ctor() - IL_0017: throw - } // end of method A::.cctor - - .method public hidebysig specialname rtspecialname - instance void .ctor() cil managed - { - // Code size 7 (0x7) - .maxstack 8 - IL_0000: ldarg.0 - IL_0001: call instance void [mscorlib]System.Object::.ctor() - IL_0006: ret - } // end of method A::.ctor - -} // end of class A - -.class public sequential ansi sealed B - extends [mscorlib]System.ValueType -{ - .pack 0 - .size 1 - .field public static int32 i - .method private hidebysig specialname rtspecialname static - void .cctor() cil managed - { - // Code size 24 (0x18) - .maxstack 8 - IL_0000: nop - IL_0001: ldstr "In B.cctor" - IL_0006: call void [System.Console]System.Console::WriteLine(string) - IL_000b: nop - IL_000c: ldc.i4.5 - IL_000d: stsfld int32 B::i - IL_0012: newobj instance void [mscorlib]System.Exception::.ctor() - IL_0017: throw - } // end of method B::.cctor - -} // end of class B - -.class public auto ansi beforefieldinit Test - extends [mscorlib]System.Object -{ - .method public hidebysig static int32 Main() cil managed - { - .entrypoint - // Code size 405 (0x195) - .maxstack 2 - .locals init (bool V_0, - class [mscorlib]System.Exception V_1, - int32 V_2, - bool V_3) - IL_0000: nop - IL_0001: ldc.i4.1 - IL_0002: stloc.0 - .try - { - IL_0003: nop - IL_0004: ldstr "Accessing class's static field" - IL_0009: call void [System.Console]System.Console::WriteLine(string) - IL_000e: nop - IL_000f: ldstr "A.i: " - IL_0014: ldsfld int32 A::i - IL_0019: box [mscorlib]System.Int32 - IL_001e: call string [mscorlib]System.String::Concat(object, - object) - IL_0023: call void [System.Console]System.Console::WriteLine(string) - IL_0028: nop - IL_0029: ldstr "Did not catch expected TypeInitializationException" - + " exception" - IL_002e: call void [System.Console]System.Console::WriteLine(string) - IL_0033: nop - IL_0034: ldc.i4.0 - IL_0035: stloc.0 - IL_0036: nop - IL_0037: leave.s IL_0061 - - } // end .try - catch [mscorlib]System.TypeInitializationException - { - IL_0039: pop - IL_003a: nop - IL_003b: ldstr "Caught expected exception 1st time" - IL_0040: call void [System.Console]System.Console::WriteLine(string) - IL_0045: nop - IL_0046: nop - IL_0047: leave.s IL_0061 - - } // end handler - catch [mscorlib]System.Exception - { - IL_0049: stloc.1 - IL_004a: nop - IL_004b: ldstr "Caught unexpected exception: " - IL_0050: ldloc.1 - IL_0051: call string [mscorlib]System.String::Concat(object, - object) - IL_0056: call void [System.Console]System.Console::WriteLine(string) - IL_005b: nop - IL_005c: ldc.i4.0 - IL_005d: stloc.0 - IL_005e: nop - IL_005f: leave.s IL_0061 - - } // end handler - IL_0061: nop - .try - { - IL_0062: nop - IL_0063: ldstr "A.i: " - IL_0068: ldsfld int32 A::i - IL_006d: box [mscorlib]System.Int32 - IL_0072: call string [mscorlib]System.String::Concat(object, - object) - IL_0077: call void [System.Console]System.Console::WriteLine(string) - IL_007c: nop - IL_007d: ldstr "Did not catch expected TypeInitializationException" - + " exception" - IL_0082: call void [System.Console]System.Console::WriteLine(string) - IL_0087: nop - IL_0088: ldc.i4.0 - IL_0089: stloc.0 - IL_008a: nop - IL_008b: leave.s IL_00b5 - - } // end .try - catch [mscorlib]System.TypeInitializationException - { - IL_008d: pop - IL_008e: nop - IL_008f: ldstr "Caught expected exception 2nd time\n" - IL_0094: call void [System.Console]System.Console::WriteLine(string) - IL_0099: nop - IL_009a: nop - IL_009b: leave.s IL_00b5 - - } // end handler - catch [mscorlib]System.Exception - { - IL_009d: stloc.1 - IL_009e: nop - IL_009f: ldstr "Caught unexpected exception: " - IL_00a4: ldloc.1 - IL_00a5: call string [mscorlib]System.String::Concat(object, - object) - IL_00aa: call void [System.Console]System.Console::WriteLine(string) - IL_00af: nop - IL_00b0: ldc.i4.0 - IL_00b1: stloc.0 - IL_00b2: nop - IL_00b3: leave.s IL_00b5 - - } // end handler - IL_00b5: nop - IL_00b6: ldstr "Accessing struct's static field" - IL_00bb: call void [System.Console]System.Console::WriteLine(string) - IL_00c0: nop - .try - { - IL_00c1: nop - IL_00c2: ldstr "B.i: " - IL_00c7: ldsfld int32 B::i - IL_00cc: box [mscorlib]System.Int32 - IL_00d1: call string [mscorlib]System.String::Concat(object, - object) - IL_00d6: call void [System.Console]System.Console::WriteLine(string) - IL_00db: nop - IL_00dc: ldstr "Did not catch expected TypeInitializationException" - + " exception" - IL_00e1: call void [System.Console]System.Console::WriteLine(string) - IL_00e6: nop - IL_00e7: ldc.i4.0 - IL_00e8: stloc.0 - IL_00e9: nop - IL_00ea: leave.s IL_0114 - - } // end .try - catch [mscorlib]System.TypeInitializationException - { - IL_00ec: pop - IL_00ed: nop - IL_00ee: ldstr "Caught expected exception 1st time" - IL_00f3: call void [System.Console]System.Console::WriteLine(string) - IL_00f8: nop - IL_00f9: nop - IL_00fa: leave.s IL_0114 - - } // end handler - catch [mscorlib]System.Exception - { - IL_00fc: stloc.1 - IL_00fd: nop - IL_00fe: ldstr "Caught unexpected exception: " - IL_0103: ldloc.1 - IL_0104: call string [mscorlib]System.String::Concat(object, - object) - IL_0109: call void [System.Console]System.Console::WriteLine(string) - IL_010e: nop - IL_010f: ldc.i4.0 - IL_0110: stloc.0 - IL_0111: nop - IL_0112: leave.s IL_0114 - - } // end handler - IL_0114: nop - .try - { - IL_0115: nop - IL_0116: ldstr "B.i: " - IL_011b: ldsfld int32 B::i - IL_0120: box [mscorlib]System.Int32 - IL_0125: call string [mscorlib]System.String::Concat(object, - object) - IL_012a: call void [System.Console]System.Console::WriteLine(string) - IL_012f: nop - IL_0130: ldstr "Did not catch expected TypeInitializationException" - + " exception" - IL_0135: call void [System.Console]System.Console::WriteLine(string) - IL_013a: nop - IL_013b: ldc.i4.0 - IL_013c: stloc.0 - IL_013d: nop - IL_013e: leave.s IL_0168 - - } // end .try - catch [mscorlib]System.TypeInitializationException - { - IL_0140: pop - IL_0141: nop - IL_0142: ldstr "Caught expected exception 2nd time\n" - IL_0147: call void [System.Console]System.Console::WriteLine(string) - IL_014c: nop - IL_014d: nop - IL_014e: leave.s IL_0168 - - } // end handler - catch [mscorlib]System.Exception - { - IL_0150: stloc.1 - IL_0151: nop - IL_0152: ldstr "Caught unexpected exception: " - IL_0157: ldloc.1 - IL_0158: call string [mscorlib]System.String::Concat(object, - object) - IL_015d: call void [System.Console]System.Console::WriteLine(string) - IL_0162: nop - IL_0163: ldc.i4.0 - IL_0164: stloc.0 - IL_0165: nop - IL_0166: leave.s IL_0168 - - } // end handler - IL_0168: nop - IL_0169: ldloc.0 - IL_016a: ldc.i4.0 - IL_016b: ceq - IL_016d: stloc.3 - IL_016e: ldloc.3 - IL_016f: brtrue.s IL_0182 - - IL_0171: nop - IL_0172: ldstr "PASS" - IL_0177: call void [System.Console]System.Console::WriteLine(string) - IL_017c: nop - IL_017d: ldc.i4.s 100 - IL_017f: stloc.2 - IL_0180: br.s IL_0193 - - IL_0182: nop - IL_0183: ldstr "FAIL" - IL_0188: call void [System.Console]System.Console::WriteLine(string) - IL_018d: nop - IL_018e: ldc.i4.s 101 - IL_0190: stloc.2 - IL_0191: br.s IL_0193 - - IL_0193: ldloc.2 - IL_0194: ret - } // end of method Test::Main - - .method public hidebysig specialname rtspecialname - instance void .ctor() cil managed - { - // Code size 7 (0x7) - .maxstack 8 - IL_0000: ldarg.0 - IL_0001: call instance void [mscorlib]System.Object::.ctor() - IL_0006: ret - } // end of method Test::.ctor - -} // end of class Test - - -// ============================================================= - -// *********** DISASSEMBLY COMPLETE *********************** -// WARNING: Created Win32 resource file TypeLoadInitExcepBFI.res diff --git a/src/tests/Loader/classloader/TypeInitialization/CoreCLR/CctorThrowStaticFieldBFI.ilproj b/src/tests/Loader/classloader/TypeInitialization/CoreCLR/CctorThrowStaticFieldBFI.ilproj deleted file mode 100644 index 53c2edf494d..00000000000 --- a/src/tests/Loader/classloader/TypeInitialization/CoreCLR/CctorThrowStaticFieldBFI.ilproj +++ /dev/null @@ -1,8 +0,0 @@ -<Project Sdk="Microsoft.NET.Sdk.IL"> - <PropertyGroup> - <OutputType>Exe</OutputType> - </PropertyGroup> - <ItemGroup> - <Compile Include="CctorThrowStaticFieldBFI.il" /> - </ItemGroup> -</Project> diff --git a/src/tests/Loader/classloader/generics/Variance/CoreCLR/Lib.il b/src/tests/Loader/classloader/generics/Variance/CoreCLR/Lib.il deleted file mode 100644 index cdc5dc9dbef..00000000000 --- a/src/tests/Loader/classloader/generics/Variance/CoreCLR/Lib.il +++ /dev/null @@ -1,267 +0,0 @@ -// Licensed to the .NET Foundation under one or more agreements. -// The .NET Foundation licenses this file to you under the MIT license. - -.assembly extern System.Console { } - -// Metadata version: v2.0.40216 -.assembly extern mscorlib -{ - .publickeytoken = (B7 7A 5C 56 19 34 E0 89 ) // .z\V.4.. - .hash = (F2 9A DF 4E 4F 6B AB 87 31 14 43 DD C2 C8 D5 1E // ...NOk..1.C..... - 83 95 73 F7 ) // ..s. - .ver 2:0:3600:0 -} -.assembly Lib -{ - - // --- The following custom attribute is added automatically, do not uncomment ------- - // .custom instance void [mscorlib]System.Diagnostics.DebuggableAttribute::.ctor(bool, - // bool) = ( 01 00 00 01 00 00 ) - - .custom instance void [mscorlib]System.Runtime.CompilerServices.CompilationRelaxationsAttribute::.ctor(int32) = ( 01 00 08 00 00 00 00 00 ) - .hash algorithm 0x00008004 - .ver 0:0:0:0 -} -.module Lib.dll -// MVID: {90D94B96-3C0E-4A14-8E27-8AD41717FB3D} -.imagebase 0x00400000 -.file alignment 0x00000200 -.stackreserve 0x00100000 -.subsystem 0x0003 // WINDOWS_CUI -.corflags 0x00000001 // ILONLY -// Image base: 0x041D0000 - - -// =============== CLASS MEMBERS DECLARATION =================== - - -.class interface public abstract auto ansi IMinusT<-([mscorlib]System.Object) MinusT> -{ -} // end of class IMinusT - -.class interface public abstract auto ansi IPlusT<+([mscorlib]System.Object) PlusT> -{ -} // end of class IPlusT - - - -.class interface public abstract auto ansi Test001PlusT<+([mscorlib]System.Object) PlusT> -{ - .method public hidebysig newslot abstract virtual - instance !PlusT method1(class IMinusT<!PlusT> t) cil managed - { - } // end of method 'IPlusT1!1'::method1 - -} // end of class 'IPlusT1!1' - - -.class interface public abstract auto ansi Test002PlusT<+([mscorlib]System.Object) PlusT> -{ - .method public hidebysig newslot abstract virtual - instance !PlusT[] method2(class IMinusT<!PlusT[]> t) cil managed - { - } // end of method 'IPlusT2!1'::method2 - -} // end of class 'IPlusT2!1' - - -.class interface public abstract auto ansi Test003PlusT<+([mscorlib]System.Object) PlusT> -{ - .method public hidebysig newslot abstract virtual - instance class IPlusT<!PlusT> method3(class IMinusT<!PlusT>[] t) cil managed - { - } // end of method 'IPlusT3!1'::method3 - -} // end of class 'IPlusT3!1' - -.class interface public abstract auto ansi Test004PlusT<+([mscorlib]System.Object) PlusT> -{ - .method public hidebysig newslot abstract virtual - instance class IMinusT<class IMinusT<!PlusT[]>> method4(class IPlusT<class IMinusT<!PlusT[]>> t) cil managed - { - } // end of method 'IPlusT4!1'::method4 - -} // end of class 'IPlusT4!1' - - -.class interface public abstract auto ansi Test005PlusT<+([mscorlib]System.Object) PlusT> -{ - .method public hidebysig newslot abstract virtual - instance class IMinusT<class IMinusT<!PlusT>[]> method5(class IMinusT<!PlusT>[][] t) cil managed - { - } // end of method 'IMinusT5!1'::method5 - -} // end of class 'IMinusT5!1' - - - -.class interface public abstract auto ansi Test001MinusT<-([mscorlib]System.Object) MinusT> -{ - .method public hidebysig newslot abstract virtual - instance class IMinusT<!MinusT[]> method1(!MinusT t) cil managed - { - } // end of method 'IMinusT1!1'::method1 - -} // end of class 'IMinusT1!1' - -.class interface public abstract auto ansi Test002MinusT<-([mscorlib]System.Object) MinusT> -{ - .method public hidebysig newslot abstract virtual - instance class IMinusT<!MinusT>[] method2(!MinusT[] t) cil managed - { - } // end of method 'IMinusT2!1'::method2 - -} // end of class 'IMinusT2!1' - - -.class interface public abstract auto ansi Test003MinusT<-([mscorlib]System.Object) MinusT> -{ - .method public hidebysig newslot abstract virtual - instance class IMinusT<class IPlusT<!MinusT>> method3(class IPlusT<!MinusT> t) cil managed - { - } // end of method 'IMinusT3!1'::method3 - -} // end of class 'IMinusT3!1' - - - -.class interface public abstract auto ansi Test004MinusT<-([mscorlib]System.Object) MinusT> -{ - .method public hidebysig newslot abstract virtual - instance class IMinusT<class IPlusT<!MinusT>[]> method4(class IPlusT<class IPlusT<!MinusT[]>> t) cil managed - { - } // end of method 'IMinusT4!1'::method4 - -} // end of class 'IMinusT4!1' - - -.class interface public abstract auto ansi Test005MinusT<-([mscorlib]System.Object) MinusT> -{ - .method public hidebysig newslot abstract virtual - instance class IPlusT<class IMinusT<!MinusT>> method5(class IPlusT<!MinusT>[] t) cil managed - { - } // end of method 'IMinusT5!1'::method5 - -} // end of class 'IMinusT5!1' - - - -.class interface public abstract auto ansi Test101PlusT<+([mscorlib]System.Object) PlusT> -{ - .method public hidebysig newslot abstract virtual - instance class IMinusT<!PlusT> method1(!PlusT t) cil managed - { - } // end of method 'IPlusT1!1'::method1 - -} // end of class 'IPlusT1!1' - - -.class interface public abstract auto ansi Test102PlusT<+([mscorlib]System.Object) PlusT> -{ - .method public hidebysig newslot abstract virtual - instance class IMinusT<!PlusT[]> method2(!PlusT[] t) cil managed - { - } // end of method 'IPlusT2!1'::method2 - -} // end of class 'IPlusT2!1' - - -.class interface public abstract auto ansi Test103PlusT<+([mscorlib]System.Object) PlusT> -{ - .method public hidebysig newslot abstract virtual - instance class IMinusT<!PlusT>[] method3(class IPlusT<!PlusT> t) cil managed - { - } // end of method 'IPlusT3!1'::method3 - -} // end of class 'IPlusT3!1' - -.class interface public abstract auto ansi Test104PlusT<+([mscorlib]System.Object) PlusT> -{ - .method public hidebysig newslot abstract virtual - instance class IPlusT<class IMinusT<!PlusT[]>> method4(class IMinusT<class IMinusT<!PlusT[]>> t) cil managed - { - } // end of method 'IPlusT4!1'::method4 - -} // end of class 'IPlusT4!1' - - -.class interface public abstract auto ansi Test105PlusT<+([mscorlib]System.Object) PlusT> -{ - .method public hidebysig newslot abstract virtual - instance class IMinusT<!PlusT>[][] method5(class IMinusT<class IMinusT<!PlusT>[]> t) cil managed - { - } // end of method 'IMinusT5!1'::method5 - -} // end of class 'IMinusT5!1' - -.class interface public abstract auto ansi Test106PlusT<+([mscorlib]System.Object) PlusT> -{ - .method public hidebysig newslot abstract virtual - instance class IMinusT<!PlusT>[][] method5(!PlusT[] t) cil managed - { - } // end of method 'IMinusT5!1'::method5 - -} // end of class 'IMinusT5!1' - - -.class interface public abstract auto ansi Test101MinusT<-([mscorlib]System.Object) MinusT> -{ - .method public hidebysig newslot abstract virtual - instance !MinusT method1(class IMinusT<!MinusT[]> t) cil managed - { - } // end of method 'IMinusT1!1'::method1 - -} // end of class 'IMinusT1!1' - -.class interface public abstract auto ansi Test102MinusT<-([mscorlib]System.Object) MinusT> -{ - .method public hidebysig newslot abstract virtual - instance !MinusT[] method2(class IMinusT<!MinusT>[] t) cil managed - { - } // end of method 'IMinusT2!1'::method2 - -} // end of class 'IMinusT2!1' - - -.class interface public abstract auto ansi Test103MinusT<-([mscorlib]System.Object) MinusT> -{ - .method public hidebysig newslot abstract virtual - instance class IPlusT<!MinusT> method3(class IMinusT<class IPlusT<!MinusT>> t) cil managed - { - } // end of method 'IMinusT3!1'::method3 - -} // end of class 'IMinusT3!1' - - -.class interface public abstract auto ansi Test104MinusT<-([mscorlib]System.Object) MinusT> -{ - .method public hidebysig newslot abstract virtual - instance class IPlusT<class IPlusT<!MinusT[]>> method4(class IMinusT<class IPlusT<!MinusT>[]> t) cil managed - { - } // end of method 'IMinusT4!1'::method4 - -} // end of class 'IMinusT4!1' - - -.class interface public abstract auto ansi Test105MinusT<-([mscorlib]System.Object) MinusT> -{ - .method public hidebysig newslot abstract virtual - instance class IPlusT<!MinusT>[] method5(class IPlusT<class IMinusT<!MinusT>> t) cil managed - { - } // end of method 'IMinusT5!1'::method5 - -} // end of class 'IMinusT5!1' - - -.class interface public abstract auto ansi Test106MinusT<-([mscorlib]System.Object) MinusT> -{ - .method public hidebysig newslot abstract virtual - instance class IPlusT<!MinusT>[] method5(!MinusT t) cil managed - { - } // end of method 'IMinusT5!1'::method5 - -} // end of class 'IMinusT5!1' -// ============================================================= - -//*********** DISASSEMBLY COMPLETE *********************** -// WARNING: Created Win32 resource file Lib.res diff --git a/src/tests/Loader/classloader/generics/Variance/CoreCLR/Lib.ilproj b/src/tests/Loader/classloader/generics/Variance/CoreCLR/Lib.ilproj deleted file mode 100644 index 494b90bef42..00000000000 --- a/src/tests/Loader/classloader/generics/Variance/CoreCLR/Lib.ilproj +++ /dev/null @@ -1,9 +0,0 @@ -<Project Sdk="Microsoft.NET.Sdk.IL"> - <PropertyGroup> - <OutputType>Library</OutputType> - <CLRTestKind>BuildOnly</CLRTestKind> - </PropertyGroup> - <ItemGroup> - <Compile Include="Lib.il" /> - </ItemGroup> -</Project> diff --git a/src/tests/Loader/classloader/generics/Variance/CoreCLR/Lib2.il b/src/tests/Loader/classloader/generics/Variance/CoreCLR/Lib2.il deleted file mode 100644 index 9858f1dd3be..00000000000 --- a/src/tests/Loader/classloader/generics/Variance/CoreCLR/Lib2.il +++ /dev/null @@ -1,145 +0,0 @@ -// Licensed to the .NET Foundation under one or more agreements. -// The .NET Foundation licenses this file to you under the MIT license. - -.assembly extern System.Console { } - -// Metadata version: v2.0.40216 -.assembly extern mscorlib -{ - .publickeytoken = (B7 7A 5C 56 19 34 E0 89 ) // .z\V.4.. - .hash = (F2 9A DF 4E 4F 6B AB 87 31 14 43 DD C2 C8 D5 1E // ...NOk..1.C..... - 83 95 73 F7 ) // ..s. - .ver 2:0:3600:0 -} -.assembly Lib2 -{ - - // --- The following custom attribute is added automatically, do not uncomment ------- - // .custom instance void [mscorlib]System.Diagnostics.DebuggableAttribute::.ctor(bool, - // bool) = ( 01 00 00 01 00 00 ) - - .custom instance void [mscorlib]System.Runtime.CompilerServices.CompilationRelaxationsAttribute::.ctor(int32) = ( 01 00 08 00 00 00 00 00 ) - .hash algorithm 0x00008004 - .ver 0:0:0:0 -} -.module Lib2.dll -// MVID: {90D94B96-3C0E-4A14-8E27-8AD41717FB3D} -.imagebase 0x00400000 -.file alignment 0x00000200 -.stackreserve 0x00100000 -.subsystem 0x0003 // WINDOWS_CUI -.corflags 0x00000001 // ILONLY -// Image base: 0x041D0000 - - -// =============== CLASS MEMBERS DECLARATION =================== - - -.class interface public abstract auto ansi IMinusT<-([mscorlib]System.Object) MinusT> -{ -} // end of class IMinusT - -.class interface public abstract auto ansi IPlusT<+([mscorlib]System.Object) PlusT> -{ -} // end of class IPlusT - - -// POSITIVE tests - -.class interface public auto ansi beforefieldinit Test001PlusT<+([mscorlib]System.Object) PlusT> -{ - .method public hidebysig newslot abstract virtual instance void - method1<(class IMinusT<!PlusT>) M>(class IMinusT<!PlusT> t) cil managed - - { - } // end of method Test001PlusT::method1 - -} // end of class Test101PlusT - - -.class interface public abstract auto ansi Test002PlusT<+([mscorlib]System.Object) PlusT> -{ - .method public hidebysig newslot abstract virtual - instance !PlusT[] method2<(class IMinusT<!PlusT[]>) M>(class IMinusT<!PlusT[]> t) cil managed - { - } // end of method Test102PlusT::method2 - -} // end of class Test102PlusT - - - - -.class interface public abstract auto ansi Test001MinusT<-([mscorlib]System.Object) MinusT> -{ - .method public hidebysig newslot abstract virtual - instance class IMinusT<!MinusT[]> method1<(class IPlusT<!MinusT>) M>(!MinusT t) cil managed - { - } // end of method Test101MinusT::method1 - -} // end of class Test101MinusT - - -.class interface public abstract auto ansi Test002MinusT<-([mscorlib]System.Object) MinusT> -{ - .method public hidebysig newslot abstract virtual - instance class IMinusT<!MinusT>[] method2<(class IMinusT<!MinusT>) M>() cil managed - { - } // end of method Test102MinusT::method2 - -} // end of class Test102MinusT - - - - -// NEGATIVE tests - - -.class interface public auto ansi beforefieldinit Test101PlusT<+([mscorlib]System.Object) PlusT> -{ - .method public hidebysig newslot abstract virtual instance void - method1<(class IPlusT<!PlusT>) M>(class IMinusT<!PlusT> t) cil managed - { - } // end of method Test001PlusT::method1 - -} // end of class Test101PlusT - - -.class interface public abstract auto ansi Test102PlusT<+([mscorlib]System.Object) PlusT> -{ - .method public hidebysig newslot abstract virtual - instance !PlusT[] method2<(class IPlusT<!PlusT>) M>(class IMinusT<!PlusT[]> t) cil managed - { - } // end of method Test102PlusT::method2 - -} // end of class Test102PlusT - - - - -.class interface public abstract auto ansi Test101MinusT<-([mscorlib]System.Object) MinusT> -{ - .method public hidebysig newslot abstract virtual - instance class IMinusT<!MinusT[]> method1<(class IMinusT<!MinusT>) M>(!MinusT t) cil managed - { - } // end of method Test101MinusT::method1 - -} // end of class Test101MinusT - - -.class interface public abstract auto ansi Test102MinusT<-([mscorlib]System.Object) MinusT> -{ - .method public hidebysig newslot abstract virtual - instance class IMinusT<!MinusT>[] method2<(class IMinusT<!MinusT>) M>() cil managed - { - } // end of method Test102MinusT::method2 - -} // end of class Test102MinusT - - - - - -// ============================================================= - -//*********** DISASSEMBLY COMPLETE *********************** -// WARNING: Created Win32 resource file Lib2.res diff --git a/src/tests/Loader/classloader/generics/Variance/CoreCLR/Lib2.ilproj b/src/tests/Loader/classloader/generics/Variance/CoreCLR/Lib2.ilproj deleted file mode 100644 index 584ed1220ac..00000000000 --- a/src/tests/Loader/classloader/generics/Variance/CoreCLR/Lib2.ilproj +++ /dev/null @@ -1,9 +0,0 @@ -<Project Sdk="Microsoft.NET.Sdk.IL"> - <PropertyGroup> - <OutputType>Library</OutputType> - <CLRTestKind>BuildOnly</CLRTestKind> - </PropertyGroup> - <ItemGroup> - <Compile Include="Lib2.il" /> - </ItemGroup> -</Project> diff --git a/src/tests/Loader/classloader/generics/Variance/CoreCLR/Method001.cs b/src/tests/Loader/classloader/generics/Variance/CoreCLR/Method001.cs deleted file mode 100644 index 5e3f694e174..00000000000 --- a/src/tests/Loader/classloader/generics/Variance/CoreCLR/Method001.cs +++ /dev/null @@ -1,149 +0,0 @@ -// Licensed to the .NET Foundation under one or more agreements. -// The .NET Foundation licenses this file to you under the MIT license. - -using System; - -public class Base { } -public class Sub : Base { } - -public class GBase<T> { } -public class GSubT<T> : GBase<T> { } -public class GSubTArr<T> : GBase<T[]> { } -public class GSubGRefT<T> : GBase<GRef<T>> { } - -public class GRef<T> { } -public struct GVal<T> { } - -public class TestClass -{ - static int iTestCount = 0; - static int iErrorCount = 0; - static int iExitCode = 101; - - public static void Eval(string location, bool exp) - { - ++iTestCount; - - if (!(exp)) - { - iErrorCount++; - Console.WriteLine("Test Failed at location: {0} @ count {1} ", location, iTestCount); - } - } - public static Type LoadTypeInternal(string testType) - { - - switch (testType) - { - case "Test001PlusT": return typeof(Test001PlusT<int>); - case "Test002PlusT": return typeof(Test002PlusT<string>); - case "Test003PlusT": return typeof(Test003PlusT<object>); - case "Test004PlusT": return typeof(Test004PlusT<Base>); - case "Test005PlusT": return typeof(Test005PlusT<GVal<Sub[]>>); - - case "Test001MinusT": return typeof(Test001MinusT<int>); - case "Test002MinusT": return typeof(Test002MinusT<string>); - case "Test003MinusT": return typeof(Test003MinusT<object>); - case "Test004MinusT": return typeof(Test004MinusT<Base>); - case "Test005MinusT": return typeof(Test005MinusT<GRef<Sub[]>>); - - default: throw new Exception("Unexpected testType"); - } - } - - public static void LoadTypeWrapper(string testType) - { - LoadTypeInternal(testType); - } - - public static bool LoadType(string testType, bool expected) - { - try - { - LoadTypeWrapper(testType); - - if (expected) - { - return true; - } - else - { - return false; - } - } - catch (MissingMethodException) - { - if (expected) - { - Console.WriteLine("Unexpected Exception MissingMethodException"); - return false; - } - else - { - return true; - } - - } - catch (TypeLoadException) - { - if (expected) - { - Console.WriteLine("Unexpected Exception TypeLoadException"); - return false; - } - else - { - return true; - } - } - catch (Exception E) - { - Console.WriteLine("Unexpected Exception {0}", E); - return false; - } - } - - private static bool RunTests() - { - Eval("Test101", LoadType("Test001MinusT", true)); - Eval("Test102", LoadType("Test002MinusT", true)); - Eval("Test103", LoadType("Test003MinusT", true)); - Eval("Test104", LoadType("Test004MinusT", true)); - Eval("Test105", LoadType("Test005MinusT", true)); - - Eval("Test001", LoadType("Test001PlusT", true)); - Eval("Test002", LoadType("Test002PlusT", true)); - Eval("Test003", LoadType("Test003PlusT", true)); - Eval("Test004", LoadType("Test004PlusT", true)); - Eval("Test005", LoadType("Test005PlusT", true)); - - - if (iErrorCount > 0) - { - Console.WriteLine("Total test cases: " + iTestCount + " Failed test cases: " + iErrorCount); - return false; - } - else - { - Console.WriteLine("Total test cases: " + iTestCount); - return true; - } - } - - public static int Main(String[] args) - { - - if (RunTests()) - { - iExitCode = 100; - Console.WriteLine("All test cases passed"); - } - else - { - iExitCode = 101; - Console.WriteLine("Test failed"); - } - return iExitCode; - } - -} diff --git a/src/tests/Loader/classloader/generics/Variance/CoreCLR/Method001.csproj b/src/tests/Loader/classloader/generics/Variance/CoreCLR/Method001.csproj deleted file mode 100644 index 7a3fe197117..00000000000 --- a/src/tests/Loader/classloader/generics/Variance/CoreCLR/Method001.csproj +++ /dev/null @@ -1,13 +0,0 @@ -<Project Sdk="Microsoft.NET.Sdk"> - <PropertyGroup> - <AllowUnsafeBlocks>true</AllowUnsafeBlocks> - <OutputType>Exe</OutputType> - <CLRTestPriority>1</CLRTestPriority> - </PropertyGroup> - <ItemGroup> - <Compile Include="Method001.cs" /> - </ItemGroup> - <ItemGroup> - <ProjectReference Include="Lib.ilproj" /> - </ItemGroup> -</Project> diff --git a/src/tests/Loader/classloader/generics/Variance/CoreCLR/Method003.cs b/src/tests/Loader/classloader/generics/Variance/CoreCLR/Method003.cs deleted file mode 100644 index 328b812c168..00000000000 --- a/src/tests/Loader/classloader/generics/Variance/CoreCLR/Method003.cs +++ /dev/null @@ -1,191 +0,0 @@ -// Licensed to the .NET Foundation under one or more agreements. -// The .NET Foundation licenses this file to you under the MIT license. - -// This test tests constraints on method type parameters -// for generic methods of generic variant interfaces - -// POSITIVE tests - -using System; - -public class C : IMinusT<int> { } -public class D : IMinusT<string[]> { } -public class E : IMinusT<object> { } - - - -public class A5 : Test001PlusT<int> -{ - public void method1<M>(IMinusT<int> t) where M : IMinusT<int> - { - } -} - -public class A6 : Test002PlusT<string> -{ - public string[] method2<M>(IMinusT<string[]> t) where M : IMinusT<string[]> - { - return new string[10]; - } -} - -public class A7 : Test001MinusT<object> -{ - public IMinusT<object[]> method1<M>(object t) where M : IPlusT<object> - { - return (IMinusT<object[]>)new E(); - } -} - - -public class TestClass -{ - static int iTestCount = 0; - static int iErrorCount = 0; - static int iExitCode = 101; - - public static void Eval(string location, bool exp) - { - ++iTestCount; - - if (!(exp)) - { - iErrorCount++; - Console.WriteLine("Test Failed at location: {0} @ count {1} ", location, iTestCount); - } - } - - - public static void LoadTypeInternal(string testType) - { - switch (testType) - { - case "Test001PlusT": - { - // positive test - // return type: void - // argument type: contravariant - // method type constraint: contravariant - - Test001PlusT<int> test = (Test001PlusT<int>)new A5(); - test.method1<IMinusT<int>>((IMinusT<int>)new C()); - break; - } - - case "Test002PlusT": - { - // positive test - // return type: covariant - // argument type: contravariant - // method type constraint: contravariant - - Test002PlusT<string> test = (Test002PlusT<string>)new A6(); - string[] st = test.method2<IMinusT<string[]>>((IMinusT<string[]>)new D()); - break; - } - - case "Test001MinusT": - { - // positive test - // return type: covariant - // argument type: contravariant - // method type constraint: contravariant - - Test001MinusT<object> test = (Test001MinusT<object>)new A7(); - IMinusT<object[]> obj = test.method1<IPlusT<object>>(new object()); - break; - } - - - default: throw new Exception("Unexpected testType"); - } - } - - public static void LoadTypeWrapper(string testType) - { - LoadTypeInternal(testType); - } - - public static bool LoadType(string testType, bool expected) - { - try - { - LoadTypeWrapper(testType); - - if (expected) - { - return true; - } - else - { - return false; - } - } - catch (MissingMethodException) - { - if (expected) - { - Console.WriteLine("Unexpected Exception MissingMethodException"); - return false; - } - else - { - return true; - } - - } - catch (TypeLoadException) - { - if (expected) - { - Console.WriteLine("Unexpected Exception TypeLoadException"); - return false; - } - else - { - return true; - } - } - catch (Exception E) - { - Console.WriteLine("Unexpected Exception {0}", E); - return false; - } - } - - private static bool RunTests() - { - // positive - Eval("Test101", LoadType("Test001PlusT", true)); - Eval("Test102", LoadType("Test002PlusT", true)); - Eval("Test103", LoadType("Test001MinusT", true)); - - if (iErrorCount > 0) - { - Console.WriteLine("Total test cases: " + iTestCount + " Failed test cases: " + iErrorCount); - return false; - } - else - { - Console.WriteLine("Total test cases: " + iTestCount); - return true; - } - } - - public static int Main(String[] args) - { - - if (RunTests()) - { - iExitCode = 100; - Console.WriteLine("All test cases passed"); - } - else - { - iExitCode = 101; - Console.WriteLine("Test failed"); - } - return iExitCode; - } - -} diff --git a/src/tests/Loader/classloader/generics/Variance/CoreCLR/Method003.csproj b/src/tests/Loader/classloader/generics/Variance/CoreCLR/Method003.csproj deleted file mode 100644 index a9da328736e..00000000000 --- a/src/tests/Loader/classloader/generics/Variance/CoreCLR/Method003.csproj +++ /dev/null @@ -1,13 +0,0 @@ -<Project Sdk="Microsoft.NET.Sdk"> - <PropertyGroup> - <AllowUnsafeBlocks>true</AllowUnsafeBlocks> - <OutputType>Exe</OutputType> - <CLRTestPriority>1</CLRTestPriority> - </PropertyGroup> - <ItemGroup> - <Compile Include="Method003.cs" /> - </ItemGroup> - <ItemGroup> - <ProjectReference Include="Lib2.ilproj" /> - </ItemGroup> -</Project> diff --git a/src/tests/Loader/classloader/nesting/coreclr/nesting4.il b/src/tests/Loader/classloader/nesting/coreclr/nesting4.il deleted file mode 100644 index f42ba938983..00000000000 --- a/src/tests/Loader/classloader/nesting/coreclr/nesting4.il +++ /dev/null @@ -1,125 +0,0 @@ -// Licensed to the .NET Foundation under one or more agreements. -// The .NET Foundation licenses this file to you under the MIT license. - -.assembly extern System.Console { } -// model revision #2 -// To compile: ilasm nesting4.il - -.assembly extern mscorlib {} -.assembly nesting4{} - -// Nesting module: PureManaged -// Nesting location: MainModule - -// enclosing type -// kind: Class -// flag: None -// visibility: private -// generics: Nongeneric -// depends on nested: InstanceField - -.class private EnclType -{ - // nested type - // kind: Interface - // flag: abstract - // visibility: public - // generics: Nongeneric - // depends on enclosing: StaticField - - .class interface abstract nested public NestedType - { - // nested depends on enclosing: StaticField - // nested member visibility: public - .field public static class EnclType sEnclType - } - - // enclosing depends on nested: InstanceField - // enclosing member visibility: famorassem - .field famorassem class EnclType/NestedType sNestClass - - // entry point location: EnclosingType - - .method public static int32 Main() - { - .entrypoint - .locals init (class [mscorlib]System.Exception V_0, - int32 V_1) - - .try - { - newobj instance void class Client::.ctor() - call instance void Client::method1() - ldstr "PASS" - call void [System.Console]System.Console::WriteLine(string) - ldc.i4.s 100 - stloc.1 - leave.s end - } - catch [mscorlib]System.Exception - { - stloc.0 - ldstr "{0}Caught unexpected exception." - ldloc.0 - call void [System.Console]System.Console::WriteLine(string,object) - ldstr "FAIL" - call void [System.Console]System.Console::WriteLine(string) - ldc.i4.s 101 - stloc.1 - leave.s end - } - end: ldloc.1 - ret - } - - .method public specialname instance void .ctor() cil managed - { - .maxstack 8 - ldarg.0 - call instance void [mscorlib]System.Object::.ctor() - ret - } -} - - -// Client module: PureManaged -// Client location: MainModule -// Client interaction: None - -.class public Client -{ - - .method public specialname instance void .ctor() cil managed - { - .maxstack 8 - ldarg.0 - call instance void [mscorlib]System.Object::.ctor() - ret - } - .method public instance void method1() - { - - // load enclosing and nested types - - newobj instance void class EnclType::.ctor() - stsfld class EnclType class EnclType/NestedType::sEnclType - ldsfld class EnclType class EnclType/NestedType::sEnclType - - // Helper1 implements EnclType/NestedType - - newobj instance void class Helper1::.ctor() - stfld class EnclType/NestedType class EnclType::sNestClass - ret - } -} - -.class public Helper1 implements EnclType/NestedType -{ - .method public specialname instance void .ctor() cil managed - { - ldarg.0 - call instance void [mscorlib]System.Object::.ctor() - ret - } - -} diff --git a/src/tests/Loader/classloader/nesting/coreclr/nesting4.ilproj b/src/tests/Loader/classloader/nesting/coreclr/nesting4.ilproj deleted file mode 100644 index 3f080c9c28a..00000000000 --- a/src/tests/Loader/classloader/nesting/coreclr/nesting4.ilproj +++ /dev/null @@ -1,9 +0,0 @@ -<Project Sdk="Microsoft.NET.Sdk.IL"> - <PropertyGroup> - <OutputType>Exe</OutputType> - <CLRTestPriority>1</CLRTestPriority> - </PropertyGroup> - <ItemGroup> - <Compile Include="nesting4.il" /> - </ItemGroup> -</Project> |