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:
authorMarek Safar <marek.safar@gmail.com>2010-03-04 13:59:48 +0300
committerMarek Safar <marek.safar@gmail.com>2010-03-04 13:59:48 +0300
commit5d300003604dd263a7401a1deb65c74e95f94604 (patch)
treed7d29886cf52bf443e3512f786fbc79fe9b99aab /mcs/tests/test-742.cs
parent22c9d564399fd602ec5563df0375357f35d1e440 (diff)
New test.
svn path=/trunk/mcs/; revision=153008
Diffstat (limited to 'mcs/tests/test-742.cs')
-rw-r--r--mcs/tests/test-742.cs28
1 files changed, 28 insertions, 0 deletions
diff --git a/mcs/tests/test-742.cs b/mcs/tests/test-742.cs
new file mode 100644
index 00000000000..b2aa98ee177
--- /dev/null
+++ b/mcs/tests/test-742.cs
@@ -0,0 +1,28 @@
+using System;
+
+public struct Test
+{
+ public int Foo;
+
+ public static Test Set (C c)
+ {
+ c.Value.Foo = 21;
+ return c.Value;
+ }
+}
+
+public class C
+{
+ public Test Value;
+}
+public class Driver
+{
+ static int Main ()
+ {
+ var v = Test.Set (new C ());
+ Console.WriteLine (v.Foo);
+ if (v.Foo != 21)
+ return 1;
+ return 0;
+ }
+}