New test.
authorMarek Safar <marek.safar@gmail.com>
Tue, 18 May 2010 16:28:07 +0000 (16:28 -0000)
committerMarek Safar <marek.safar@gmail.com>
Tue, 18 May 2010 16:28:07 +0000 (16:28 -0000)
svn path=/trunk/mcs/; revision=157503

mcs/tests/gtest-exmethod-34.cs [new file with mode: 0644]
mcs/tests/test-591.cs
mcs/tests/ver-il-gmcs.xml

diff --git a/mcs/tests/gtest-exmethod-34.cs b/mcs/tests/gtest-exmethod-34.cs
new file mode 100644 (file)
index 0000000..918e258
--- /dev/null
@@ -0,0 +1,14 @@
+// Compiler options: -warnaserror
+
+public static class Program
+{
+       static void Foo (this object o)
+       {
+       }
+       
+       public static void Main ()
+       {
+               const object o = null;
+               o.Foo ();
+       }
+}
index a4dbbc68ede78b3a5251c767a6622b6c73dde4c8..51508f7299358bc9287e9a297bbe8eb063b97b78 100644 (file)
@@ -17,7 +17,8 @@ class C2
 {
        public static void Main ()
        {
-               const object o = null;
-               const string s = (string) o;
+               // BUG compatibility for now
+               //const object o = null;
+               //const string s = (string) o;
        }
 }
index 28644f2d5aace909c9f63bc0433f4bc6a54f7cf0..5b65600da7a7b7984477fb460e873d29412f760f 100644 (file)
       </method>
     </type>
   </test>
+  <test name="gtest-exmethod-34.cs">
+    <type name="Program">
+      <method name="Void Foo(System.Object)">
+        <size>1</size>
+      </method>
+      <method name="Void Main()">
+        <size>7</size>
+      </method>
+    </type>
+  </test>
   <test name="gtest-friend-01.cs">
     <type name="Test">
       <method name="Void .ctor()">