summaryrefslogtreecommitdiff
path: root/tests/src/Loader/classloader/generics/Constraints/ConstraintsOnType/Positive/RunTestPos2.il
diff options
context:
space:
mode:
Diffstat (limited to 'tests/src/Loader/classloader/generics/Constraints/ConstraintsOnType/Positive/RunTestPos2.il')
-rw-r--r--tests/src/Loader/classloader/generics/Constraints/ConstraintsOnType/Positive/RunTestPos2.il57
1 files changed, 57 insertions, 0 deletions
diff --git a/tests/src/Loader/classloader/generics/Constraints/ConstraintsOnType/Positive/RunTestPos2.il b/tests/src/Loader/classloader/generics/Constraints/ConstraintsOnType/Positive/RunTestPos2.il
new file mode 100644
index 0000000000..d0ff480f36
--- /dev/null
+++ b/tests/src/Loader/classloader/generics/Constraints/ConstraintsOnType/Positive/RunTestPos2.il
@@ -0,0 +1,57 @@
+// Licensed to the .NET Foundation under one or more agreements.
+// The .NET Foundation licenses this file to you under the MIT license.
+// See the LICENSE file in the project root for more information.
+
+.assembly extern System.Console { }
+// this file contains positive test for
+// GStruct<T> where T : struct
+// G4<P> : GStruct<P> where P : valuetype S
+
+// C# didn't want to compile such type definition so we are using IL.
+
+
+.assembly extern mscorlib {}
+.assembly extern TypeParam2_Constraints_Pos {}
+.assembly RunTestPos2 {}
+
+.class public auto ansi beforefieldinit GStruct`1<valuetype T>
+ extends [mscorlib]System.Object
+{
+ .method public hidebysig specialname rtspecialname
+ instance void .ctor() cil managed
+ {
+ .maxstack 8
+ ldarg.0
+ call instance void [mscorlib]System.Object::.ctor()
+ ret
+ }
+}
+
+.class public auto ansi beforefieldinit G4`1<(valuetype [TypeParam2_Constraints_Pos]S) P>
+ extends class GStruct`1<!P>
+{
+ .method public hidebysig specialname rtspecialname
+ instance void .ctor() cil managed
+ {
+ .maxstack 8
+ ldarg.0
+ call instance void [mscorlib]System.Object::.ctor()
+ ret
+ }
+}
+
+
+
+.class public sequential ansi sealed beforefieldinit S_PrivCtor
+ extends [mscorlib]System.ValueType
+{
+ .pack 0
+ .size 1
+}
+
+
+
+
+
+
+