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/test-array-2.il')
-rw-r--r--mcs/ilasm/tests/test-array-2.il41
1 files changed, 41 insertions, 0 deletions
diff --git a/mcs/ilasm/tests/test-array-2.il b/mcs/ilasm/tests/test-array-2.il
new file mode 100644
index 00000000000..91dd8f9965b
--- /dev/null
+++ b/mcs/ilasm/tests/test-array-2.il
@@ -0,0 +1,41 @@
+// Test for methodref for array methods
+// Eg. class test [,]::.ctor (int32, int32)
+
+.assembly extern mscorlib
+{
+ .ver 1:0:5000:0
+}
+.assembly 'test-array'
+{
+ .ver 0:0:0:0
+}
+.module 'test-array.exe'
+
+
+ .class private auto ansi beforefieldinit test
+ extends [mscorlib]System.Object
+ {
+ .method public hidebysig specialname rtspecialname
+ instance default void .ctor () cil managed
+ {
+ .maxstack 8
+ IL_0000: ldarg.0
+ IL_0001: call instance void object::.ctor()
+ IL_0006: ret
+ }
+
+ .method public static hidebysig
+ default void Main () cil managed
+ {
+ .entrypoint
+ .maxstack 3
+ .locals init (
+ class test[,] V_0)
+ IL_0000: ldc.i4.1
+ IL_0001: ldc.i4.1
+ IL_0002: newobj instance void class test[,]::.ctor(int32, int32)
+ IL_0007: stloc.0
+ IL_0008: ret
+ }
+
+ }