From: Marek Safar Date: Fri, 21 May 2010 09:59:40 +0000 (-0000) Subject: New tests & update. X-Git-Url: http://wien.tomnetworks.com/gitweb/?a=commitdiff_plain;h=21f1d2baa41baa2c4861613e3baee10b05288308;p=mono.git New tests & update. svn path=/trunk/mcs/; revision=157672 --- diff --git a/mcs/tests/gtest-512.cs b/mcs/tests/gtest-512.cs new file mode 100644 index 00000000000..177d37f1127 --- /dev/null +++ b/mcs/tests/gtest-512.cs @@ -0,0 +1,10 @@ +public class C +{ + static object ViewState; + + public static void Main () + { + var v1 = (bool)ViewState != null; + var v2 = null != (bool)ViewState; + } +} diff --git a/mcs/tests/gtest-lambda-25.cs b/mcs/tests/gtest-lambda-25.cs new file mode 100644 index 00000000000..2636b4a8f28 --- /dev/null +++ b/mcs/tests/gtest-lambda-25.cs @@ -0,0 +1,32 @@ +using System; + +namespace MonoBugs +{ + public struct Foo + { + public T Item; + } + + public static class Bar + { + public static void DoStuff (T item, Action fn) + { + throw new ApplicationException ("failed"); + } + + public static void DoStuff (T? item, Action fn) + where T : struct + { + fn (item.Value); + } + } + + public static class Program + { + public static void Main () + { + Foo? value = new Foo { Item = 3 }; + Bar.DoStuff (value, x => Console.WriteLine (x.Item)); + } + } +} diff --git a/mcs/tests/test-777.cs b/mcs/tests/test-777.cs new file mode 100644 index 00000000000..3c1c7844fff --- /dev/null +++ b/mcs/tests/test-777.cs @@ -0,0 +1,17 @@ +public class MediaStore +{ + class Thing + { + public interface AudioColumns : MediaStore.MediaColumns + { + } + } + + public interface MediaColumns + { + } + + public static void Main () + { + } +} diff --git a/mcs/tests/ver-il-gmcs.xml b/mcs/tests/ver-il-gmcs.xml index 5ea4700d9c7..3e9ac4a84bb 100644 --- a/mcs/tests/ver-il-gmcs.xml +++ b/mcs/tests/ver-il-gmcs.xml @@ -1727,7 +1727,7 @@ 17 - 214 + 216 @@ -4177,7 +4177,7 @@ 7 - 96 + 98 @@ -5734,7 +5734,7 @@ - 47 + 51 6 @@ -6174,7 +6174,7 @@ 7 - 145 + 148 @@ -9035,9 +9035,6 @@ - - 7 - 43 @@ -9053,6 +9050,9 @@ 60 + + 7 + @@ -12828,6 +12828,16 @@ + + + + 5 + + + 7 + + + @@ -16093,10 +16103,10 @@ 7 - 81 + 83 - 524 + 526 @@ -18972,10 +18982,10 @@ 7 - 218 + 219 - 56 + 57 6 @@ -19178,10 +19188,10 @@ 7 - 186 + 187 - 56 + 57 6 @@ -19381,10 +19391,10 @@ 12 - 175 + 176 - 56 + 57 6 @@ -20443,6 +20453,24 @@ + + + + 11 + + + 14 + + + + + 59 + + + 13 + + + @@ -22254,7 +22282,7 @@ 7 - 219 + 221 @@ -23822,7 +23850,7 @@ 12 - 29 + 31 @@ -27329,7 +27357,7 @@ 7 - 36 + 38 @@ -28718,7 +28746,7 @@ - 219 + 211 @@ -28814,7 +28842,7 @@ - 219 + 211 @@ -30868,7 +30896,7 @@ 7 - 171 + 176 @@ -32196,7 +32224,7 @@ 7 - 25 + 27 @@ -37843,7 +37871,7 @@ - 70 + 72 @@ -38122,7 +38150,7 @@ 7 - 65 + 67 @@ -38420,7 +38448,7 @@ - 86 + 88 7 @@ -38586,7 +38614,7 @@ - 348 + 336 7 @@ -39477,6 +39505,21 @@ + + + + 1 + + + 7 + + + + + 7 + + + @@ -46232,7 +46275,7 @@ 7 - 166 + 167 @@ -46265,7 +46308,7 @@ 7 - 48 + 50