New tests & update.
authorMarek Safar <marek.safar@gmail.com>
Fri, 21 May 2010 09:59:40 +0000 (09:59 -0000)
committerMarek Safar <marek.safar@gmail.com>
Fri, 21 May 2010 09:59:40 +0000 (09:59 -0000)
svn path=/trunk/mcs/; revision=157672

mcs/tests/gtest-512.cs [new file with mode: 0644]
mcs/tests/gtest-lambda-25.cs [new file with mode: 0644]
mcs/tests/test-777.cs [new file with mode: 0644]
mcs/tests/ver-il-gmcs.xml

diff --git a/mcs/tests/gtest-512.cs b/mcs/tests/gtest-512.cs
new file mode 100644 (file)
index 0000000..177d37f
--- /dev/null
@@ -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 (file)
index 0000000..2636b4a
--- /dev/null
@@ -0,0 +1,32 @@
+using System;
+
+namespace MonoBugs
+{
+       public struct Foo<T>
+       {
+               public T Item;
+       }
+
+       public static class Bar
+       {
+               public static void DoStuff<T> (T item, Action<T> fn)
+               {
+                       throw new ApplicationException ("failed");
+               }
+
+               public static void DoStuff<T> (T? item, Action<T> fn)
+                       where T : struct
+               {
+                       fn (item.Value);
+               }
+       }
+
+       public static class Program
+       {
+               public static void Main ()
+               {
+                       Foo<int>? value = new Foo<int> { 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 (file)
index 0000000..3c1c784
--- /dev/null
@@ -0,0 +1,17 @@
+public class MediaStore
+{
+       class Thing
+       {
+               public interface AudioColumns : MediaStore.MediaColumns
+               {
+               }
+       }
+
+       public interface MediaColumns
+       {
+       }
+
+       public static void Main ()
+       {
+       }
+}
index 5ea4700d9c73bfd799dddd75c69c02da7c02b030..3e9ac4a84bb4187f3ed6e4e731a7ba222e969e9a 100644 (file)
         <size>17</size>
       </method>
       <method name="Void Main(System.String[])">
-        <size>214</size>
+        <size>216</size>
       </method>
     </type>
     <type name="ComparablePair`2[T,U]">
         <size>7</size>
       </method>
       <method name="Void Main()">
-        <size>96</size>
+        <size>98</size>
       </method>
     </type>
   </test>
     </type>
     <type name="Fault">
       <method name="Void Main()">
-        <size>47</size>
+        <size>51</size>
       </method>
       <method name="System.String ToString()">
         <size>6</size>
         <size>7</size>
       </method>
       <method name="Int32 Main()">
-        <size>145</size>
+        <size>148</size>
       </method>
     </type>
   </test>
   </test>
   <test name="gtest-335.cs">
     <type name="TestClass">
-      <method name="Void .ctor()">
-        <size>7</size>
-      </method>
       <method name="Boolean Test_1()">
         <size>43</size>
       </method>
       <method name="Int32 Main()">
         <size>60</size>
       </method>
+      <method name="Void .ctor()">
+        <size>7</size>
+      </method>
     </type>
   </test>
   <test name="gtest-336.cs">
       </method>
     </type>
   </test>
+  <test name="gtest-512.cs">
+    <type name="C">
+      <method name="Void Main()">
+        <size>5</size>
+      </method>
+      <method name="Void .ctor()">
+        <size>7</size>
+      </method>
+    </type>
+  </test>
   <test name="gtest-anon-1.cs">
     <type name="X">
       <method name="Void .ctor()">
         <size>7</size>
       </method>
       <method name="Void TestList(System.Collections.Generic.List`1[System.Int32], Int32)">
-        <size>81</size>
+        <size>83</size>
       </method>
       <method name="Int32 Main()">
-        <size>524</size>
+        <size>526</size>
       </method>
     </type>
     <type name="Test+Wrap">
         <size>7</size>
       </method>
       <method name="Boolean MoveNext()">
-        <size>218</size>
+        <size>219</size>
       </method>
       <method name="Void Dispose()">
-        <size>56</size>
+        <size>57</size>
       </method>
       <method name="Void Reset()">
         <size>6</size>
         <size>7</size>
       </method>
       <method name="Boolean MoveNext()">
-        <size>186</size>
+        <size>187</size>
       </method>
       <method name="Void Dispose()">
-        <size>56</size>
+        <size>57</size>
       </method>
       <method name="Void Reset()">
         <size>6</size>
         <size>12</size>
       </method>
       <method name="Boolean MoveNext()">
-        <size>175</size>
+        <size>176</size>
       </method>
       <method name="Void Dispose()">
-        <size>56</size>
+        <size>57</size>
       </method>
       <method name="Void Reset()">
         <size>6</size>
       </method>
     </type>
   </test>
+  <test name="gtest-lambda-25.cs">
+    <type name="MonoBugs.Bar">
+      <method name="Void DoStuff[T](T, System.Action`1[T])">
+        <size>11</size>
+      </method>
+      <method name="Void DoStuff[T](Nullable`1, System.Action`1[T])">
+        <size>14</size>
+      </method>
+    </type>
+    <type name="MonoBugs.Program">
+      <method name="Void Main()">
+        <size>59</size>
+      </method>
+      <method name="Void &lt;Main&gt;m__0(Foo`1)">
+        <size>13</size>
+      </method>
+    </type>
+  </test>
   <test name="gtest-linq-01.cs">
     <type name="from.C">
       <method name="Void .ctor()">
         <size>7</size>
       </method>
       <method name="Int32 Main()">
-        <size>219</size>
+        <size>221</size>
       </method>
     </type>
   </test>
         <size>12</size>
       </method>
       <method name="Int32 Main()">
-        <size>29</size>
+        <size>31</size>
       </method>
     </type>
   </test>
         <size>7</size>
       </method>
       <method name="Void Main()">
-        <size>36</size>
+        <size>38</size>
       </method>
     </type>
     <type name="Blah">
     </type>
     <type name="A+B">
       <method name="Void .ctor()">
-        <size>219</size>
+        <size>211</size>
       </method>
     </type>
   </test>
     </type>
     <type name="A+B">
       <method name="Void .ctor()">
-        <size>219</size>
+        <size>211</size>
       </method>
     </type>
   </test>
         <size>7</size>
       </method>
       <method name="Int32 Main()">
-        <size>171</size>
+        <size>176</size>
       </method>
     </type>
   </test>
         <size>7</size>
       </method>
       <method name="Void Main()">
-        <size>25</size>
+        <size>27</size>
       </method>
     </type>
     <type name="Foo">
     </type>
     <type name="Program">
       <method name="Int32 Main()">
-        <size>70</size>
+        <size>72</size>
       </method>
     </type>
   </test>
         <size>7</size>
       </method>
       <method name="Int32 Main()">
-        <size>65</size>
+        <size>67</size>
       </method>
     </type>
   </test>
   <test name="test-733.cs">
     <type name="Test">
       <method name="Int32 Main()">
-        <size>86</size>
+        <size>88</size>
       </method>
       <method name="Void .ctor()">
         <size>7</size>
   <test name="test-740.cs">
     <type name="FixedTest">
       <method name="Int32 Main()">
-        <size>348</size>
+        <size>336</size>
       </method>
       <method name="Void .ctor()">
         <size>7</size>
       </method>
     </type>
   </test>
+  <test name="test-777.cs">
+    <type name="MediaStore">
+      <method name="Void Main()">
+        <size>1</size>
+      </method>
+      <method name="Void .ctor()">
+        <size>7</size>
+      </method>
+    </type>
+    <type name="MediaStore+Thing">
+      <method name="Void .ctor()">
+        <size>7</size>
+      </method>
+    </type>
+  </test>
   <test name="test-78.cs">
     <type name="N1.B">
       <method name="Void .ctor()">
         <size>7</size>
       </method>
       <method name="Int32 Main()">
-        <size>166</size>
+        <size>167</size>
       </method>
     </type>
     <type name="&lt;PrivateImplementationDetails&gt;">
         <size>7</size>
       </method>
       <method name="Int32 Main()">
-        <size>48</size>
+        <size>50</size>
       </method>
     </type>
   </test>