a575963da9
Former-commit-id: da6be194a6b1221998fc28233f2503bd61dd9d14
29 lines
264 B
C#
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 };
|
|
}
|
|
}
|