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:
authorMartin Baulig <martin@novell.com>2002-08-07 22:32:51 +0400
committerMartin Baulig <martin@novell.com>2002-08-07 22:32:51 +0400
commit802e7403cfd4223ba3a0e884e81e890193a63936 (patch)
treeaf6db7f5517e094fac0adc77750365450ac3bcc4 /mcs/tests/test-160.cs
parent468247ced6c7992eef2dd47503bab41aab8b07f4 (diff)
2002-08-07 Martin Baulig <martin@gnome.org>
* test-160.cs: New test for bug #28176. svn path=/trunk/mcs/; revision=6518
Diffstat (limited to 'mcs/tests/test-160.cs')
-rw-r--r--mcs/tests/test-160.cs21
1 files changed, 21 insertions, 0 deletions
diff --git a/mcs/tests/test-160.cs b/mcs/tests/test-160.cs
new file mode 100644
index 00000000000..c2083dd68c8
--- /dev/null
+++ b/mcs/tests/test-160.cs
@@ -0,0 +1,21 @@
+class B {
+ public S s;
+}
+class S {
+ public int a;
+}
+class T {
+ static B foo;
+
+ static int blah (object arg) {
+ B look = (B)arg;
+ foo.s.a = 9;
+ look.s.a = foo.s.a;
+ return look.s.a;
+ }
+
+ static int Main() {
+ // Compilation only test;
+ return 0;
+ }
+}