Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'mcs/ilasm/tests/global.il')
-rw-r--r--mcs/ilasm/tests/global.il39
1 files changed, 39 insertions, 0 deletions
diff --git a/mcs/ilasm/tests/global.il b/mcs/ilasm/tests/global.il
new file mode 100644
index 00000000000..7a87090da94
--- /dev/null
+++ b/mcs/ilasm/tests/global.il
@@ -0,0 +1,39 @@
+//Tests global generic methods
+
+.assembly extern mscorlib
+{
+ .ver 2:0:0:0
+}
+.assembly ca
+{
+ .ver 0:0:0:0
+}
+.module ca.dll
+
+//Global Method
+ .method public hidebysig static void foo<A,B>() cil managed
+ {
+ .maxstack 8
+ IL_0000: ret
+ }
+
+.class private auto ansi beforefieldinit abc`1<Z>
+ extends [mscorlib]System.Object
+{
+ .method public hidebysig specialname rtspecialname
+ instance void .ctor() cil managed
+ {
+ .maxstack 8
+ IL_0000: ldarg.0
+ IL_0001: call instance void [mscorlib]System.Object::.ctor()
+ IL_0006: ret
+ }
+
+ .method public hidebysig static void bar() cil managed
+ {
+ .maxstack 8
+ IL_0000: call void foo<!Z,string>()
+ IL_0005: ret
+ }
+
+}