summaryrefslogtreecommitdiff
path: root/mcs/errors/cs0165-32.cs
diff options
context:
space:
mode:
Diffstat (limited to 'mcs/errors/cs0165-32.cs')
-rw-r--r--mcs/errors/cs0165-32.cs16
1 files changed, 16 insertions, 0 deletions
diff --git a/mcs/errors/cs0165-32.cs b/mcs/errors/cs0165-32.cs
new file mode 100644
index 0000000000..fb9652267c
--- /dev/null
+++ b/mcs/errors/cs0165-32.cs
@@ -0,0 +1,16 @@
+// CS0165: Use of unassigned local variable `a'
+// Line: 9
+
+class C
+{
+ static void Main ()
+ {
+ int a;
+ Foo (out a, a);
+ }
+
+ static void Foo (out int a, int b)
+ {
+ a = b;
+ }
+} \ No newline at end of file