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>2005-09-15 18:04:18 +0400
committerRaja R Harinath <harinath@hurrynot.org>2005-09-15 18:04:18 +0400
commit8f30d2cb60664f7c999720040d4aa2aa4c25566a (patch)
treefd14250f8b4947ef95bc9aeb7a86d25f753f2545 /mcs/tests/test-455.cs
parentca1c851c57f1f334595868baa245ea3de591a9ab (diff)
In gmcs:
Fix test-455.cs. * expression.cs (Invocation.EmitCall): Remove optimization on this_call since it doesn't handle 'this' being a value type. In tests: * test-455.cs: New test. Distilled from a failing unit test of System.Runtime.Serialization.Formatters.Soap.dll. svn path=/trunk/mcs/; revision=50079
Diffstat (limited to 'mcs/tests/test-455.cs')
-rw-r--r--mcs/tests/test-455.cs15
1 files changed, 15 insertions, 0 deletions
diff --git a/mcs/tests/test-455.cs b/mcs/tests/test-455.cs
new file mode 100644
index 00000000000..754f344ae96
--- /dev/null
+++ b/mcs/tests/test-455.cs
@@ -0,0 +1,15 @@
+struct Foo {
+ public int x;
+ public override int GetHashCode ()
+ {
+ return base.GetHashCode ();
+ }
+}
+
+class Test {
+ static void Main ()
+ {
+ Foo foo = new Foo ();
+ System.Console.WriteLine (foo.GetHashCode ());
+ }
+}