New test.
authorMarek Safar <marek.safar@gmail.com>
Wed, 25 Feb 2009 16:46:43 +0000 (16:46 -0000)
committerMarek Safar <marek.safar@gmail.com>
Wed, 25 Feb 2009 16:46:43 +0000 (16:46 -0000)
svn path=/trunk/mcs/; revision=128017

mcs/tests/gtest-initialize-09.cs [new file with mode: 0644]
mcs/tests/ver-il-gmcs.xml

diff --git a/mcs/tests/gtest-initialize-09.cs b/mcs/tests/gtest-initialize-09.cs
new file mode 100644 (file)
index 0000000..0027dd5
--- /dev/null
@@ -0,0 +1,13 @@
+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;
+       }
+}
\ No newline at end of file
index 55444908799d201e847e6fb839611304b6de7b75..43d68db4289ac5c0de3c3d0613d3ee64f76f8d10 100644 (file)
       </method>
     </type>
   </test>
+  <test name="gtest-initialize-09.cs">
+    <type name="Test">
+      <method name="Void .ctor()">
+        <size>7</size>
+      </method>
+      <method name="Int32 Main()">
+        <size>54</size>
+      </method>
+    </type>
+  </test>
   <test name="gtest-iter-01.cs">
     <type name="C">
       <method name="Void .ctor()">