Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Baulig <martin@novell.com>2005-05-02 18:05:01 +0400
committerMartin Baulig <martin@novell.com>2005-05-02 18:05:01 +0400
commitcb3e137d10e13b60fe9893782365c232a6ba10c6 (patch)
treec6eb52ea7a9a1cb3971495af8ce3552164073d95 /mcs/errors/cs0165-8.cs
parentfa04b80eaaa682013fd17c29791a50e36161659b (diff)
New error tests.
svn path=/trunk/mcs/; revision=43885
Diffstat (limited to 'mcs/errors/cs0165-8.cs')
-rwxr-xr-xmcs/errors/cs0165-8.cs19
1 files changed, 19 insertions, 0 deletions
diff --git a/mcs/errors/cs0165-8.cs b/mcs/errors/cs0165-8.cs
new file mode 100755
index 00000000000..f24532fcc21
--- /dev/null
+++ b/mcs/errors/cs0165-8.cs
@@ -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);
+ }
+}