projects
/
mono.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
22c9d56
)
New test.
author
Marek Safar
<marek.safar@gmail.com>
Thu, 4 Mar 2010 10:59:48 +0000
(10:59 -0000)
committer
Marek Safar
<marek.safar@gmail.com>
Thu, 4 Mar 2010 10:59:48 +0000
(10:59 -0000)
svn path=/trunk/mcs/; revision=153008
mcs/tests/test-742.cs
[new file with mode: 0644]
patch
|
blob
diff --git a/mcs/tests/test-742.cs
b/mcs/tests/test-742.cs
new file mode 100644
(file)
index 0000000..
b2aa98e
--- /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;
+ }
+}