Add documentation missing of tests, and add new test.
authorMiguel de Icaza <miguel@gnome.org>
Sun, 23 Feb 2003 19:08:21 +0000 (19:08 -0000)
committerMiguel de Icaza <miguel@gnome.org>
Sun, 23 Feb 2003 19:08:21 +0000 (19:08 -0000)
svn path=/trunk/mcs/; revision=11878

mcs/tests/README.tests
mcs/tests/test-184.cs
mcs/tests/test-186.cs [new file with mode: 0644]

index b7d0d90ffab801500f689576f68dbd4dec8ed52d..ea74ffa6bd64ce9b6c35db96557ee54b89b49093 100644 (file)
@@ -170,10 +170,59 @@ test-175.cs
 Check for user-defined implicit conversions if both arguments of a
 binary operator are of a user-defined type.  Bug #30443.
 
+test-176.cs
+-----------
+This tests checks that we perform constant folding on byte values.  The
+compiler had a bug where it did not do so.
+
+test-177.cs
+-----------
+This tests that the compiler is generating "return:" attributes for a 
+method.  This was a separate code path, and was not handled in the past.
+
+test-179.cs
+-----------
+Tests various uses of the indexers in the presence of the `new' keyword
+and various different argument types.
+
+test-180.cs
+-----------
+This test is part of a bug report in which casting an enumeration value
+into System.Enum was not wrapped correctly, and the wrong method was
+called.
+
+test-181.cs
+-----------
+Test whenever mcs correctly handles the MethodImplAttributes
+custom attribute.
+
+test-182.cs
+-----------
+Tests that bug 37473 is gone.  The problem was that we were generating
+incorrect code for field references on a value type.  The code was originally
+written by Martin, but I turned it off as I did not see what it did fix.  The
+code is now turned on again.  
+
+test-183.cs
+-----------
+This test just verifies that we generate the proper signature for
+EndInvoke, something that we were not doing before in the presence
+of out parameters
+
+test-184.cs
+-----------
+This test fixes a bug that exposed a problem when calling a struct
+constructor that is initialized from an instance constructor
+
 test-185.cs
 -----------
 Flow analysis wrt. infinite loops.  Bug #37708.
 
+test-186.cs
+-----------
+Typecasts were not being constant-folded/reduced, which triggered
+the bug 37363.   (String) null was not a null constant in attributes.
+
 verify-1.cs
 -----------
 Test whether we do not jump out of the method in a Try/Finally block.
index 8bb51b295456874e5ff0167d5920cd4051705533..d925d951ca1d0232281be4a5bc887424fd5b414a 100644 (file)
@@ -22,6 +22,12 @@ public class Test
 {
        User t;
        Test() { t=new User (new Struct(5)); }
+
+       //
+       // This one was not handled before by the compiler
+       // constrast that to the use on the constructor above, that
+       // worked just fine
+       //
        User t2=new User(new Struct(251));
 
        static int Main ()
diff --git a/mcs/tests/test-186.cs b/mcs/tests/test-186.cs
new file mode 100644 (file)
index 0000000..e4c28b5
--- /dev/null
@@ -0,0 +1,28 @@
+using System;
+
+namespace TestBUG
+{
+       public class myAttribute : Attribute
+       {
+               public myAttribute(string p1, string p2, string p3, int p4) {}
+       }
+
+       //
+       // Typecasts on attributes, fix for bug 37363
+       //
+       [myAttribute("stringArgument", (String)null, (String)null, 2)]
+       public class Test
+       {
+
+               static int Main  ()
+               {
+                       return 0;
+               }
+       }
+}
+
+
+
+
+
+