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>2003-02-13 03:34:47 +0300
committerMiguel de Icaza <miguel@gnome.org>2003-02-13 03:34:47 +0300
commitdbb885b9a163bad70ec4f0fd8e8f769379c9e499 (patch)
treeb5be8590c1e3c2471904510ad0a316f17dbd79d8 /mcs/tests/test-182.cs
parentb44fb5e4e5390f5be289a2654ac16339343dcaba (diff)
Update tests
svn path=/trunk/mcs/; revision=11535
Diffstat (limited to 'mcs/tests/test-182.cs')
-rw-r--r--mcs/tests/test-182.cs25
1 files changed, 25 insertions, 0 deletions
diff --git a/mcs/tests/test-182.cs b/mcs/tests/test-182.cs
new file mode 100644
index 00000000000..08fe6448dce
--- /dev/null
+++ b/mcs/tests/test-182.cs
@@ -0,0 +1,25 @@
+//
+// See bug 37473
+//
+using System;
+struct TS {
+ long ticks;
+ public long Ticks {
+ get {return ++ticks;}
+ }
+}
+struct DT {
+ TS t;
+ public long Ticks {
+ get {return t.Ticks;}
+ }
+}
+
+class T {
+ static int Main () {
+ DT t = new DT ();
+ if (t.Ticks != 1)
+ return 1;
+ return 0;
+ }
+}