Author: martin
Date: 2005-05-02 10:05:01 -0400 (Mon, 02 May 2005)
New Revision: 43885

Added:
   trunk/mcs/errors/cs0165-6.cs
   trunk/mcs/errors/cs0165-7.cs
   trunk/mcs/errors/cs0165-8.cs
Log:
New error tests.


Added: trunk/mcs/errors/cs0165-6.cs
===================================================================
--- trunk/mcs/errors/cs0165-6.cs        2005-05-02 14:02:53 UTC (rev 43884)
+++ trunk/mcs/errors/cs0165-6.cs        2005-05-02 14:05:01 UTC (rev 43885)
@@ -0,0 +1,19 @@
+// CS0165: Use of unassigned local variable `x'
+// Line: 17
+using System;
+
+public class Foo
+{
+       static void Main (string[] args)
+       {
+               int service;
+
+               int pos = 0;
+               while (pos < args.Length) {
+                       service = 1;
+                       break;
+               }
+
+               Console.WriteLine (service);
+       }
+}

Added: trunk/mcs/errors/cs0165-7.cs
===================================================================
--- trunk/mcs/errors/cs0165-7.cs        2005-05-02 14:02:53 UTC (rev 43884)
+++ trunk/mcs/errors/cs0165-7.cs        2005-05-02 14:05:01 UTC (rev 43885)
@@ -0,0 +1,18 @@
+// CS0165: Use of unassigned local variable `x'
+// Line: 16
+using System;
+
+public class Foo
+{
+       static void Main (string[] args)
+       {
+               int service;
+
+               for (int pos = 0; pos < args.Length; pos++) {
+                       service = 1;
+                       break;
+               }
+
+               Console.WriteLine (service);
+       }
+}

Added: trunk/mcs/errors/cs0165-8.cs
===================================================================
--- trunk/mcs/errors/cs0165-8.cs        2005-05-02 14:02:53 UTC (rev 43884)
+++ trunk/mcs/errors/cs0165-8.cs        2005-05-02 14:05:01 UTC (rev 43885)
@@ -0,0 +1,19 @@
+// CS0165: Use of unassigned local variable `x'
+// Line: 17
+using System;
+
+public class Foo
+{
+       static void Main ()
+       {
+               int service;
+
+               foreach (char b in "hola") {
+                       Console.WriteLine (b);
+                       service = 1;
+                       break;
+               }
+
+               Console.WriteLine (service);
+       }
+}


Property changes on: trunk/mcs/errors/cs0165-8.cs
___________________________________________________________________
Name: svn:executable
   + *

_______________________________________________
Mono-patches maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches

Reply via email to