New test.
authorMarek Safar <marek.safar@gmail.com>
Mon, 2 Jun 2008 10:57:44 +0000 (10:57 -0000)
committerMarek Safar <marek.safar@gmail.com>
Mon, 2 Jun 2008 10:57:44 +0000 (10:57 -0000)
svn path=/trunk/mcs/; revision=104653

mcs/tests/gtest-autoproperty-04.cs
mcs/tests/ver-il-gmcs.xml

index 6d5279d810a2d7df1a796b5e7b34b24a84399076..f83b520c587592bb0abe01f92c3b5a7ca8520fcd 100644 (file)
@@ -1,14 +1,20 @@
-// Compiler options: -unsafe
+using System;
 
-namespace N
+namespace MonoTests
 {
-       public class BufferManager
+       public abstract class MainClass
        {
-               public unsafe byte *Ptr { get; private set; }
-               
-               public static void Main ()
+               protected virtual string [] foo { get; set; }
+               public abstract string [] bar { get; set; }
+
+               public static void Main (string [] args)
                {
+                       Console.WriteLine ("Hello World!");
                }
        }
+       public class ChildClass : MainClass
+       {
+               protected override string [] foo { get; set; }
+               public override string [] bar { get; set; }
+       }
 }
-
index e0abaf89e2e330876c3992d4de177509f11359a3..03c4a76efda224e2851c2066f516547d9526dc92 100644 (file)
     </type>
   </test>
   <test name="gtest-autoproperty-04.cs">
-    <type name="N.BufferManager">
+    <type name="MonoTests.MainClass">
       <method name="Void .ctor()">
         <size>7</size>
       </method>
-      <method name="System.Byte* get_Ptr()">
+      <method name="System.String[] get_foo()">
         <size>7</size>
       </method>
-      <method name="Void set_Ptr(System.Byte*)">
+      <method name="Void set_foo(System.String[])">
         <size>8</size>
       </method>
-      <method name="Void Main()">
-        <size>1</size>
+      <method name="System.String[] get_bar()">
+        <size>0</size>
+      </method>
+      <method name="Void set_bar(System.String[])">
+        <size>0</size>
+      </method>
+      <method name="Void Main(System.String[])">
+        <size>11</size>
+      </method>
+    </type>
+    <type name="MonoTests.ChildClass">
+      <method name="Void .ctor()">
+        <size>7</size>
+      </method>
+      <method name="System.String[] get_foo()">
+        <size>7</size>
+      </method>
+      <method name="Void set_foo(System.String[])">
+        <size>8</size>
+      </method>
+      <method name="System.String[] get_bar()">
+        <size>7</size>
+      </method>
+      <method name="Void set_bar(System.String[])">
+        <size>8</size>
       </method>
     </type>
   </test>