linux-packaging-mono/mcs/tests/gtest-initialize-06.cs
Jo Shields a575963da9 Imported Upstream version 3.6.0
Former-commit-id: da6be194a6b1221998fc28233f2503bd61dd9d14
2014-08-13 10:39:27 +01:00

29 lines
264 B
C#

struct Point
{
public int X, Y;
}
class C
{
public static int Main ()
{
Point p;
Foo (out p);
if (p.X != 3)
return 1;
if (p.Y != 5)
return 2;
return 0;
}
static void Foo (out Point p)
{
p = new Point () { X = 3, Y = 5 };
}
}