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:
authorMiguel de Icaza <miguel@gnome.org>2002-01-08 22:52:32 +0300
committerMiguel de Icaza <miguel@gnome.org>2002-01-08 22:52:32 +0300
commitbdd4bdabd5ea2edbea637dcdbd9678b84e5728df (patch)
treecf3d4f24194d86659272818302196fc1f66ee9da /mcs/tests/test-34.cs
parentfc0208a072498bcd72022d7047ddfc4a40b9e1c0 (diff)
2002-01-08 Miguel de Icaza <miguel@ximian.com>
* expression.cs (Argument.Emit): Handle the case of ref objects being passed to ref functions; (ParameterReference.EmitLoad): Loads the content of the pointer without dereferencing. 2002-01-07 Miguel de Icaza <miguel@ximian.com> * cs-tokenizer.cs: Implemented the pre-processing expressions. This also includes Matt Kimball's patch for LookupType. svn path=/trunk/mcs/; revision=1918
Diffstat (limited to 'mcs/tests/test-34.cs')
-rw-r--r--mcs/tests/test-34.cs16
1 files changed, 16 insertions, 0 deletions
diff --git a/mcs/tests/test-34.cs b/mcs/tests/test-34.cs
index 06f8518a201..2b797fe2fc6 100644
--- a/mcs/tests/test-34.cs
+++ b/mcs/tests/test-34.cs
@@ -30,6 +30,16 @@ public class Blah {
got = 3;
}
+ static void In (ref int a)
+ {
+ a++;
+ }
+
+ static void Out (ref int a)
+ {
+ In (ref a);
+ }
+
public static int Main ()
{
int i = 1;
@@ -54,6 +64,12 @@ public class Blah {
if (got != 2)
return 3;
+ int k = 10;
+
+ Out (ref k);
+ if (k != 11)
+ return 10;
+
return 0;
}
}