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

13 lines
196 B
C#

class Test
{
struct Foo { public int[] Data; }
public static int Main ()
{
int[] res = new Foo () { Data = new int[] { 1, 2, 3 } }.Data;
if (res.Length != 3)
return 1;
return 0;
}
}