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-bounded-array.il')
-rw-r--r--mcs/ilasm/tests/test-bounded-array.il28
1 files changed, 28 insertions, 0 deletions
diff --git a/mcs/ilasm/tests/test-bounded-array.il b/mcs/ilasm/tests/test-bounded-array.il
new file mode 100644
index 00000000000..64e7651a6df
--- /dev/null
+++ b/mcs/ilasm/tests/test-bounded-array.il
@@ -0,0 +1,28 @@
+//Test case for #76976
+//uint8[0...] should not lose its lower-bound info
+
+.assembly extern mscorlib
+{
+}
+.assembly Output
+{
+ .ver 1:0:0:0
+}
+.module Output
+
+.class private auto autochar beforefieldinit Test
+ extends [mscorlib]System.Object
+{
+ .method public hidebysig static void Main() cil managed
+ {
+ .entrypoint
+ .maxstack 2
+ .locals init (uint8[8] V_0,
+ int32 V_1)
+ ldc.i4.8
+ newobj instance void uint8[0...]::.ctor(int32)
+ pop
+ ret
+ }
+
+}