From 3558dde0a43ecd06c574997c63aab760415060ab Mon Sep 17 00:00:00 2001 From: Marek Safar Date: Tue, 30 Sep 2008 15:02:44 +0000 Subject: [PATCH] New tests. svn path=/trunk/mcs/; revision=114488 --- mcs/tests/gtest-414.cs | 48 ++++++++++++++++++++++++++++++++++ mcs/tests/test-685.cs | 15 +++++++++++ mcs/tests/ver-il-gmcs.xml | 55 +++++++++++++++++++++++++++++++++++++++ 3 files changed, 118 insertions(+) create mode 100755 mcs/tests/gtest-414.cs create mode 100755 mcs/tests/test-685.cs diff --git a/mcs/tests/gtest-414.cs b/mcs/tests/gtest-414.cs new file mode 100755 index 00000000000..20cd253fbba --- /dev/null +++ b/mcs/tests/gtest-414.cs @@ -0,0 +1,48 @@ +using System; + +namespace MonoTest +{ + public class MainClass + { + public static void Main () + { + } + } + + public interface ITest + { + void Get (object o); + } + + public class TestImpl : ITest + { + public void Get () + { + } + + public void Get (object o) + { + } + + void ITest.Get (object o) + { + } + } + + interface IG + { + void M (); + } + + class C : IG, IG + { + void IG.M () + { + } + + void IG.M () + { + } + } +} + diff --git a/mcs/tests/test-685.cs b/mcs/tests/test-685.cs new file mode 100755 index 00000000000..033af02650f --- /dev/null +++ b/mcs/tests/test-685.cs @@ -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; + } +} diff --git a/mcs/tests/ver-il-gmcs.xml b/mcs/tests/ver-il-gmcs.xml index d09ab2cac4c..d9b944cee40 100644 --- a/mcs/tests/ver-il-gmcs.xml +++ b/mcs/tests/ver-il-gmcs.xml @@ -10886,6 +10886,51 @@ + + + + 7 + + + 1 + + + + + 0 + + + + + 7 + + + 1 + + + 1 + + + 1 + + + + + 0 + + + + + 7 + + + 1 + + + 1 + + + @@ -32322,6 +32367,16 @@ + + + + 7 + + + 28 + + + -- 2.25.1