summaryrefslogtreecommitdiff
path: root/mcs/errors/cs0165-38.cs
diff options
context:
space:
mode:
Diffstat (limited to 'mcs/errors/cs0165-38.cs')
-rw-r--r--mcs/errors/cs0165-38.cs18
1 files changed, 18 insertions, 0 deletions
diff --git a/mcs/errors/cs0165-38.cs b/mcs/errors/cs0165-38.cs
new file mode 100644
index 0000000000..20fc40949f
--- /dev/null
+++ b/mcs/errors/cs0165-38.cs
@@ -0,0 +1,18 @@
+// CS0165: Use of unassigned local variable `a'
+// Line: 16
+
+using System;
+
+class Program
+{
+ public static void Main ()
+ {
+ int a;
+ string s = "";
+
+ do {
+ } while (s != "s" && (a = 4) > 3);
+
+ Console.WriteLine (a);
+ }
+}