New tests.
authorMarek Safar <marek.safar@gmail.com>
Mon, 16 Nov 2009 14:39:03 +0000 (14:39 -0000)
committerMarek Safar <marek.safar@gmail.com>
Mon, 16 Nov 2009 14:39:03 +0000 (14:39 -0000)
svn path=/trunk/mcs/; revision=146259

mcs/tests/gtest-etree-01.cs
mcs/tests/gtest-optional-07.cs [new file with mode: 0644]
mcs/tests/ver-il-gmcs.xml

index 86db5ded0489f438ef3b34f127595806cd004d23..18b7061cdbc7a92c5f85a47d0676c6d7a9661b72 100644 (file)
@@ -2351,7 +2351,6 @@ class Tester
                Assert (null, c2 (new MyType (1), null));
        }
 
-       // CSC BUG: Fixed?
        void OrNullableTest_3 ()
        {
                Expression<Func<MyType?, uint, long?>> e3 = (MyType? a, uint b) => a | b;
@@ -2426,8 +2425,7 @@ class Tester
                Expression<Func<string, Expression<Func<string>>>> e = (string s) => () => s;
                AssertNodeType (e, ExpressionType.Quote);
                
-               // Blocked by https://bugzilla.novell.com/show_bug.cgi?id=550722
-               //Assert ("data", e.Compile ().Invoke ("data").Compile ().Invoke ());
+               Assert ("data", e.Compile ().Invoke ("data").Compile ().Invoke ());
        }
        
        void RightShiftTest ()
diff --git a/mcs/tests/gtest-optional-07.cs b/mcs/tests/gtest-optional-07.cs
new file mode 100644 (file)
index 0000000..2d2b706
--- /dev/null
@@ -0,0 +1,17 @@
+public class Tests
+{
+       public static void foo (Foo f = Foo.None)
+       {
+       }
+
+       public static int Main ()
+       {
+               foo ();
+               return 0;
+       }
+}
+
+public enum Foo
+{
+       None = 0
+}
\ No newline at end of file
index 98cd4ca4f23c17d881fbcacce3efc959262da018..58a9be2ebf0331de7f820f7945299176373587d3 100644 (file)
         <size>152</size>
       </method>
       <method name="Void QuoteTest_2()">
-        <size>63</size>
+        <size>99</size>
       </method>
     </type>
     <type name="Tester+&lt;MemberAccessTest&gt;c__AnonStorey1">
       </method>
     </type>
   </test>
+  <test name="gtest-optional-07.cs">
+    <type name="Tests">
+      <method name="Void foo(Foo)">
+        <size>1</size>
+      </method>
+      <method name="Int32 Main()">
+        <size>8</size>
+      </method>
+      <method name="Void .ctor()">
+        <size>7</size>
+      </method>
+    </type>
+  </test>
   <test name="gtest-partial-01.cs">
     <type name="B`1[U]">
       <method name="Void .ctor()">