Author: marek
Date: 2005-04-26 03:10:37 -0400 (Tue, 26 Apr 2005)
New Revision: 43580
Added:
trunk/mcs/errors/cs3007.cs
trunk/mcs/errors/cs3026.cs
trunk/mcs/errors/cs3027.cs
Removed:
trunk/mcs/errors/cs2023.cs
trunk/mcs/errors/cs2023.response
trunk/mcs/errors/cs3025.cs
Modified:
trunk/mcs/errors/TestRunner.cs
Log:
new tests + update
Modified: trunk/mcs/errors/TestRunner.cs
===================================================================
--- trunk/mcs/errors/TestRunner.cs 2005-04-26 06:58:26 UTC (rev 43579)
+++ trunk/mcs/errors/TestRunner.cs 2005-04-26 07:10:37 UTC (rev 43580)
@@ -74,6 +74,8 @@
pi.Arguments = sb.ToString ();
Process p = Process.Start (pi);
output = p.StandardError.ReadToEnd ();
+ if (output.Length == 0)
+ output = p.StandardOutput.ReadToEnd ();
p.WaitForExit ();
return p.ExitCode == 0;
}
@@ -138,7 +140,7 @@
ReadWrongErrors (wrong_errors_file);
ITester tester;
try {
- Console.WriteLine ("Loading:" + mcs);
+ Console.WriteLine ("Loading: " + mcs);
tester = new ReflectionTester
(Assembly.LoadFile (mcs));
}
catch (Exception) {
Deleted: trunk/mcs/errors/cs2023.cs
===================================================================
--- trunk/mcs/errors/cs2023.cs 2005-04-26 06:58:26 UTC (rev 43579)
+++ trunk/mcs/errors/cs2023.cs 2005-04-26 07:10:37 UTC (rev 43580)
@@ -1,3 +0,0 @@
-// cs2023.cs: Ignoring /noconfig option because it was specified in a response
file
-// Line: 0
-// Compiler options: -warnaserror @cs2023.response -t:library
Deleted: trunk/mcs/errors/cs2023.response
===================================================================
--- trunk/mcs/errors/cs2023.response 2005-04-26 06:58:26 UTC (rev 43579)
+++ trunk/mcs/errors/cs2023.response 2005-04-26 07:10:37 UTC (rev 43580)
@@ -1 +0,0 @@
-/noconfig
\ No newline at end of file
Added: trunk/mcs/errors/cs3007.cs
===================================================================
--- trunk/mcs/errors/cs3007.cs 2005-04-26 06:58:26 UTC (rev 43579)
+++ trunk/mcs/errors/cs3007.cs 2005-04-26 07:10:37 UTC (rev 43580)
@@ -0,0 +1,13 @@
+// cs3007.cs: Overloaded method 'CLSClass.(bool[])' differing only by unnamed
array types is not CLS-compliant
+// Line: 11
+
+using System;
+[assembly: CLSCompliant(true)]
+
+public class CLSClass {
+ public CLSClass(int[,,][] i) {
+ }
+
+ public CLSClass(bool[] b) {
+ }
+}
Deleted: trunk/mcs/errors/cs3025.cs
===================================================================
--- trunk/mcs/errors/cs3025.cs 2005-04-26 06:58:26 UTC (rev 43579)
+++ trunk/mcs/errors/cs3025.cs 2005-04-26 07:10:37 UTC (rev 43580)
@@ -1,14 +0,0 @@
-// cs3025.cs: CLS-compliant accessors must have the same accessibility as
their property
-// Line: 12
-
-using System;
-[assembly: CLSCompliant (true)]
-
-public class Class {
- public int Property {
- protected get {
- return 5;
- }
- set {}
- }
-}
\ No newline at end of file
Added: trunk/mcs/errors/cs3026.cs
===================================================================
--- trunk/mcs/errors/cs3026.cs 2005-04-26 06:58:26 UTC (rev 43579)
+++ trunk/mcs/errors/cs3026.cs 2005-04-26 07:10:37 UTC (rev 43580)
@@ -0,0 +1,10 @@
+// cs3026.cs: CLS-compliant field 'Class.V' cannot be volatile
+// Line: 9
+// Compiler options: -warn:1 -warnaserror
+
+using System;
+[assembly: CLSCompliant (true)]
+
+public class Class {
+ protected volatile int V;
+}
Added: trunk/mcs/errors/cs3027.cs
===================================================================
--- trunk/mcs/errors/cs3027.cs 2005-04-26 06:58:26 UTC (rev 43579)
+++ trunk/mcs/errors/cs3027.cs 2005-04-26 07:10:37 UTC (rev 43580)
@@ -0,0 +1,19 @@
+// cs3027.cs: 'I' is not CLS-compliant because base interface 'I2' is not
CLS-compliant
+// Line: 17
+// Compiler options: -warn:1 -warnaserror
+
+using System;
+[assembly: CLSCompliant (true)]
+
+public interface I1
+{
+}
+
+[CLSCompliant (false)]
+public interface I2
+{
+}
+
+public interface I: I1, I2
+{
+}
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches