New test.
authorMarek Safar <marek.safar@gmail.com>
Tue, 24 Feb 2009 16:58:37 +0000 (16:58 -0000)
committerMarek Safar <marek.safar@gmail.com>
Tue, 24 Feb 2009 16:58:37 +0000 (16:58 -0000)
svn path=/trunk/mcs/; revision=127868

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

diff --git a/mcs/tests/gtest-etree-18.cs b/mcs/tests/gtest-etree-18.cs
new file mode 100644 (file)
index 0000000..502618f
--- /dev/null
@@ -0,0 +1,26 @@
+using System;
+using System.Linq.Expressions;
+
+public class FooBase { }
+public class Foo : FooBase { }
+
+public interface IHelper
+{
+       void DoIt (FooBase foo);
+}
+
+public class Program
+{
+       static int Main ()
+       {
+               Expression<Action<IHelper>> e = (helper => helper.DoIt (new Foo ()));
+               var mce = e.Body as MethodCallExpression;
+               var et = mce.Arguments[0].NodeType;
+
+               Console.WriteLine (et);
+               if (et != ExpressionType.New)
+                       return 1;
+
+               return 0;
+       }
+}
index 66cf2af3ddf40f15d9494338d133ca79d56cb0d6..cd2601772e42b73e8acf7f293c20a11a95ce2dfd 100644 (file)
         <size>97</size>
       </method>
       <method name="Void ConvertTest_10()">
-        <size>178</size>
+        <size>163</size>
       </method>
       <method name="Void ConvertTest_11()">
-        <size>116</size>
+        <size>101</size>
       </method>
       <method name="Void ConvertTest_12()">
         <size>166</size>
         <size>113</size>
       </method>
       <method name="Void EqualTestDelegate_2()">
-        <size>342</size>
+        <size>312</size>
       </method>
       <method name="Void ExclusiveOrTest()">
         <size>115</size>
       </method>
     </type>
   </test>
+  <test name="gtest-etree-18.cs">
+    <type name="FooBase">
+      <method name="Void .ctor()">
+        <size>7</size>
+      </method>
+    </type>
+    <type name="Foo">
+      <method name="Void .ctor()">
+        <size>7</size>
+      </method>
+    </type>
+    <type name="Program">
+      <method name="Void .ctor()">
+        <size>7</size>
+      </method>
+      <method name="Int32 Main()">
+        <size>140</size>
+      </method>
+    </type>
+  </test>
   <test name="gtest-exmethod-01.cs">
     <type name="SimpleTest">
       <method name="System.String Prefix(System.String, System.String)">