New test
authorMarek Safar <marek.safar@gmail.com>
Tue, 15 Jun 2010 07:57:26 +0000 (07:57 -0000)
committerMarek Safar <marek.safar@gmail.com>
Tue, 15 Jun 2010 07:57:26 +0000 (07:57 -0000)
svn path=/trunk/mcs/; revision=158922

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

diff --git a/mcs/tests/gtest-initialize-11.cs b/mcs/tests/gtest-initialize-11.cs
new file mode 100644 (file)
index 0000000..249fa94
--- /dev/null
@@ -0,0 +1,21 @@
+using System;
+
+namespace InlineAssignmentTest
+{
+       public class Foo
+       {
+               public bool B = true;
+       }
+
+       public class MainClass
+       {
+               public static int Main ()
+               {
+                       var foo = new Foo () { B = false };
+                       if (foo.B != false)
+                               return 1;
+
+                       return 0;
+               }
+       }
+}
index cd530031c4795f1d8a4b12265576887ebac78274..0de7cf8184048f7fbc7db46cba1007acfd20c016 100644 (file)
         <size>83</size>
       </method>
       <method name="Int32 Main()">
-        <size>526</size>
+        <size>534</size>
       </method>
     </type>
     <type name="Test+Wrap">
         <size>7</size>
       </method>
       <method name="Int32 Main()">
-        <size>1099</size>
+        <size>1243</size>
       </method>
     </type>
     <type name="Test+Point">
         <size>7</size>
       </method>
       <method name="Int32 Main()">
-        <size>219</size>
+        <size>235</size>
       </method>
     </type>
   </test>
       </method>
     </type>
   </test>
+  <test name="gtest-initialize-11.cs">
+    <type name="InlineAssignmentTest.Foo">
+      <method name="Void .ctor()">
+        <size>14</size>
+      </method>
+    </type>
+    <type name="InlineAssignmentTest.MainClass">
+      <method name="Int32 Main()">
+        <size>30</size>
+      </method>
+      <method name="Void .ctor()">
+        <size>7</size>
+      </method>
+    </type>
+  </test>
   <test name="gtest-iter-01.cs">
     <type name="C">
       <method name="Void .ctor()">