New tests.
authorMarek Safar <marek.safar@gmail.com>
Tue, 30 Sep 2008 15:02:44 +0000 (15:02 -0000)
committerMarek Safar <marek.safar@gmail.com>
Tue, 30 Sep 2008 15:02:44 +0000 (15:02 -0000)
svn path=/trunk/mcs/; revision=114488

mcs/tests/gtest-414.cs [new file with mode: 0755]
mcs/tests/test-685.cs [new file with mode: 0755]
mcs/tests/ver-il-gmcs.xml

diff --git a/mcs/tests/gtest-414.cs b/mcs/tests/gtest-414.cs
new file mode 100755 (executable)
index 0000000..20cd253
--- /dev/null
@@ -0,0 +1,48 @@
+using System;
+
+namespace MonoTest
+{
+       public class MainClass
+       {
+               public static void Main ()
+               {
+               }
+       }
+
+       public interface ITest
+       {
+               void Get<T> (object o);
+       }
+
+       public class TestImpl : ITest
+       {
+               public void Get<T> ()
+               {
+               }
+               
+               public void Get<T> (object o)
+               {
+               }
+               
+               void ITest.Get<T> (object o)
+               {
+               }
+       }
+       
+       interface IG<T>
+       {
+               void M ();
+       }
+       
+       class C : IG<int>, IG<string>
+       {
+               void IG<int>.M ()
+               {
+               }
+               
+               void IG<string>.M ()
+               {
+               }
+       }
+}
+
diff --git a/mcs/tests/test-685.cs b/mcs/tests/test-685.cs
new file mode 100755 (executable)
index 0000000..033af02
--- /dev/null
@@ -0,0 +1,15 @@
+// Compiler options: -warnaserror
+
+// Checks redundant CS0642 warning
+
+public class C
+{
+       public static void Main ()
+       {
+               int v;
+               for (v = 1; v >= 0; v--) ;
+               uint [] b = null;
+               if (b != null)
+                       return;
+       }
+}
index d09ab2cac4c67984100fe8b1d6e7c237358238a1..d9b944cee401250e06982e6238a0269a5eb0e82d 100644 (file)
       </method>
     </type>
   </test>
+  <test name="gtest-414.cs">
+    <type name="MonoTest.MainClass">
+      <method name="Void .ctor()">
+        <size>7</size>
+      </method>
+      <method name="Void Main()">
+        <size>1</size>
+      </method>
+    </type>
+    <type name="MonoTest.ITest">
+      <method name="Void Get[T](System.Object)">
+        <size>0</size>
+      </method>
+    </type>
+    <type name="MonoTest.TestImpl">
+      <method name="Void .ctor()">
+        <size>7</size>
+      </method>
+      <method name="Void MonoTest.ITest.Get[T](System.Object)">
+        <size>1</size>
+      </method>
+      <method name="Void Get[T]()">
+        <size>1</size>
+      </method>
+      <method name="Void Get[T](System.Object)">
+        <size>1</size>
+      </method>
+    </type>
+    <type name="MonoTest.IG`1[T]">
+      <method name="Void M()">
+        <size>0</size>
+      </method>
+    </type>
+    <type name="MonoTest.C">
+      <method name="Void .ctor()">
+        <size>7</size>
+      </method>
+      <method name="Void MonoTest.IG`1[[System.Int32, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].M()">
+        <size>1</size>
+      </method>
+      <method name="Void MonoTest.IG`1[[System.String, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].M()">
+        <size>1</size>
+      </method>
+    </type>
+  </test>
   <test name="gtest-684.cs">
     <type name="C">
       <method name="Void .ctor()">
       </method>
     </type>
   </test>
+  <test name="test-685.cs">
+    <type name="C">
+      <method name="Void .ctor()">
+        <size>7</size>
+      </method>
+      <method name="Void Main()">
+        <size>28</size>
+      </method>
+    </type>
+  </test>
   <test name="test-69.cs">
     <type name="Blah">
       <method name="Void .ctor()">