New test.
authorMarek Safar <marek.safar@gmail.com>
Mon, 27 Jul 2009 15:14:36 +0000 (15:14 -0000)
committerMarek Safar <marek.safar@gmail.com>
Mon, 27 Jul 2009 15:14:36 +0000 (15:14 -0000)
svn path=/trunk/mcs/; revision=138732

mcs/tests/test-partial-26.cs [new file with mode: 0644]
mcs/tests/ver-il-gmcs.xml

diff --git a/mcs/tests/test-partial-26.cs b/mcs/tests/test-partial-26.cs
new file mode 100644 (file)
index 0000000..35859ec
--- /dev/null
@@ -0,0 +1,31 @@
+using System;
+
+namespace ConsoleApplication1
+{
+       public partial class X
+       {
+               [CLSCompliant (true)]
+               partial void Foo ();
+       }
+
+       public partial class X
+       {
+               partial void Foo ()
+               {
+                       int i;
+               }
+       }
+
+       class Program
+       {
+               static int Main ()
+               {
+                       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;
+
+                       return 1;
+               }
+       }
+}
index 0d5f172514dc7b9451fe8dc47188c641bf9b7101..53483e8d9be99342ae52301e457b255d2fb8182d 100644 (file)
       </method>
     </type>
   </test>
+  <test name="test-partial-26.cs">
+    <type name="ConsoleApplication1.X">
+      <method name="Void .ctor()">
+        <size>7</size>
+      </method>
+      <method name="Void Foo()">
+        <size>1</size>
+      </method>
+    </type>
+    <type name="ConsoleApplication1.Program">
+      <method name="Void .ctor()">
+        <size>7</size>
+      </method>
+      <method name="Int32 Main()">
+        <size>50</size>
+      </method>
+    </type>
+  </test>
   <test name="test-var-01.cs">
     <type name="Test">
       <method name="Void .ctor()">