Add new test
authorMarek Safar <marek.safar@gmail.com>
Fri, 20 Apr 2012 09:31:37 +0000 (10:31 +0100)
committerMarek Safar <marek.safar@gmail.com>
Fri, 20 Apr 2012 15:12:41 +0000 (16:12 +0100)
mcs/tests/gtest-exmethod-43.cs [new file with mode: 0644]
mcs/tests/ver-il-net_4_5.xml

diff --git a/mcs/tests/gtest-exmethod-43.cs b/mcs/tests/gtest-exmethod-43.cs
new file mode 100644 (file)
index 0000000..ea4de7c
--- /dev/null
@@ -0,0 +1,28 @@
+public class AdapterType
+{
+       protected virtual void DoSomething ()
+       {
+       }
+}
+
+public static class Extensions
+{
+       public static void DoSomething (this AdapterType obj)
+       {
+       }
+}
+
+public abstract class Dummy : AdapterType
+{
+       public virtual bool Refresh ()
+       {
+               AdapterType someObj = null;
+               someObj.DoSomething ();
+               return true;
+       }
+
+       public static void Main ()
+       {
+
+       }
+}
\ No newline at end of file
index 746367b34ae4fcc405c201e39bf91abe5437cd7f..2956927f7636e936b6f206057e484970ac8bed78 100644 (file)
       </method>
     </type>
   </test>
+  <test name="gtest-exmethod-43.cs">
+    <type name="AdapterType">
+      <method name="Void DoSomething()" attrs="452">
+        <size>2</size>
+      </method>
+      <method name="Void .ctor()" attrs="6278">
+        <size>7</size>
+      </method>
+    </type>
+    <type name="Extensions">
+      <method name="Void DoSomething(AdapterType)" attrs="150">
+        <size>2</size>
+      </method>
+    </type>
+    <type name="Dummy">
+      <method name="Boolean Refresh()" attrs="454">
+        <size>18</size>
+      </method>
+      <method name="Void Main()" attrs="150">
+        <size>2</size>
+      </method>
+      <method name="Void .ctor()" attrs="6276">
+        <size>7</size>
+      </method>
+    </type>
+  </test>
   <test name="gtest-fixedbuffer-01.cs">
     <type name="TestNew">
       <method name="Void SetTest()" attrs="134">