[LoongArch64] Part-5:add loongarch support in some files for LoongArch64. (#21769)
[mono-project.git] / mcs / tests / test-539.cs
blobea0070d7616e4093029fa0aef7dfa6f1ca2f52f0
1 // Compiler options: -optimize
2 using System;
4 class Test
6 public static int Main ()
8 //switching to a constant fixes the problem
9 double thisIsCausingTheProblem = 5.0;
11 double[,] m1 = new double[4, 4] {
12 { 1.0, 0.0, 0.0, thisIsCausingTheProblem },
13 { 0.0, 1.0, 0.0, thisIsCausingTheProblem },
14 { 0.0, 0.0, 1.0, thisIsCausingTheProblem },
15 { 0.0, 0.0, 0.0, 1.0 }
18 var r = m1[0, 3];
19 if (r != 5)
20 return 1;
22 return 0;