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:
authorRaja R Harinath <harinath@hurrynot.org>2008-04-25 23:06:30 +0400
committerRaja R Harinath <harinath@hurrynot.org>2008-04-25 23:06:30 +0400
commit90b4b17bdfc315e7a5dffc60566f4a8913d84115 (patch)
treeb0ffeda88dc9f788a88ae8605106c7308b7a09ce /mcs/tests/gtest-388.cs
parent68d283ed5f771c8c7f656689bf5a4fdf74857361 (diff)
Fix gtest-388.cs
* expression.cs (VariableReference.EmitAssign) <source is NewInstance>: Handle 'leave_copy'. svn path=/trunk/mcs/; revision=101863
Diffstat (limited to 'mcs/tests/gtest-388.cs')
-rw-r--r--mcs/tests/gtest-388.cs19
1 files changed, 19 insertions, 0 deletions
diff --git a/mcs/tests/gtest-388.cs b/mcs/tests/gtest-388.cs
new file mode 100644
index 00000000000..e28d37fd212
--- /dev/null
+++ b/mcs/tests/gtest-388.cs
@@ -0,0 +1,19 @@
+using System;
+
+class Data {
+ public int Value;
+}
+
+class Foo {
+ static void f (Data d)
+ {
+ if (d.Value != 5)
+ throw new Exception ();
+ }
+
+ static void Main ()
+ {
+ Data d;
+ f (d = new Data () { Value = 5 });
+ }
+}