In gmcs:
[mono.git] / mcs / tests / test-455.cs
diff --git a/mcs/tests/test-455.cs b/mcs/tests/test-455.cs
new file mode 100644 (file)
index 0000000..754f344
--- /dev/null
@@ -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 ());
+       }
+}