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-7.cs
parentfa04b80eaaa682013fd17c29791a50e36161659b (diff)
New error tests.
svn path=/trunk/mcs/; revision=43885
Diffstat (limited to 'mcs/errors/cs0165-7.cs')
-rw-r--r--mcs/errors/cs0165-7.cs18
1 files changed, 18 insertions, 0 deletions
diff --git a/mcs/errors/cs0165-7.cs b/mcs/errors/cs0165-7.cs
new file mode 100644
index 00000000000..ce563baba69
--- /dev/null
+++ b/mcs/errors/cs0165-7.cs
@@ -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);
+ }
+}