Cosmos/source/IL2CPU.Tests/Tests/TestSimpleArrays/TestSimpleArrays.cs

13 lines
No EOL
333 B
C#

using System;
class ConsoleDrv
{
static int Main()
{
int[] xTestValues = new int[] {1, 2, 3, 4};
int xSum = xTestValues[0] + xTestValues[1] + xTestValues[2] + xTestValues[3];
xTestValues[0] = 10;
xSum = xSum + xTestValues[0] + xTestValues[1] + xTestValues[2] + xTestValues[3];
return xSum == 29 ? 0 : 1;
}
}