New test.
authorMarek Safar <marek.safar@gmail.com>
Tue, 4 Aug 2009 10:30:36 +0000 (10:30 -0000)
committerMarek Safar <marek.safar@gmail.com>
Tue, 4 Aug 2009 10:30:36 +0000 (10:30 -0000)
svn path=/trunk/mcs/; revision=139336

mcs/tests/test-partial-26.cs
mcs/tests/ver-il-gmcs.xml

index 35859ec97478238cb41f96270f3a2bbb0d520cd4..574e456154ef9991ce8ee2316271e0a7d963914f 100644 (file)
@@ -15,6 +15,20 @@ namespace ConsoleApplication1
                        int i;
                }
        }
+       
+       public partial class Y
+       {
+               partial void Foo ()
+               {
+                       int i;
+               }
+       }
+       
+       public partial class Y
+       {
+               [CLSCompliant (true)]
+               partial void Foo ();
+       }
 
        class Program
        {
@@ -22,10 +36,15 @@ namespace ConsoleApplication1
                {
                        var x = typeof (X).GetMethod ("Foo", System.Reflection.BindingFlags.NonPublic | System.Reflection.BindingFlags.Instance).GetCustomAttributes (true);
                        Console.WriteLine (x.Length);
-                       if (x.Length == 1)
-                               return 0;
+                       if (x.Length != 1)
+                               return 1;
 
-                       return 1;
+                       x = typeof (Y).GetMethod ("Foo", System.Reflection.BindingFlags.NonPublic | System.Reflection.BindingFlags.Instance).GetCustomAttributes (true);
+                       Console.WriteLine (x.Length);
+                       if (x.Length != 1)
+                               return 2;
+                       
+                       return 0;
                }
        }
 }
index 8a8c6b0dea0d90cac3f4478e21adf167fe7105b0..0280bf416a07a65f4ac1d7c8215000989e890f26 100644 (file)
         <size>7</size>
       </method>
       <method name="Int32 Main()">
-        <size>50</size>
+        <size>98</size>
+      </method>
+    </type>
+    <type name="ConsoleApplication1.Y">
+      <method name="Void Foo()">
+        <size>1</size>
+      </method>
+      <method name="Void .ctor()">
+        <size>7</size>
       </method>
     </type>
   </test>