Cosmos/source/IL2CPU.Tests/Tests/SimpleByRefParam/SimpleByRefParam.cs

17 lines
No EOL
253 B
C#

using System;
class ConsoleDrv
{
static int Main()
{
int theValue = 2;
DoCalc(ref theValue);
int theValue2 = theValue;
return (theValue == 4) ? 0 : 1;
}
public static void DoCalc(ref int aValue)
{
aValue += aValue;
}
}