X-Git-Url: http://wien.tomnetworks.com/gitweb/?a=blobdiff_plain;f=mcs%2Ftests%2Ftest-483.cs;h=ba6b97f812113e33b28e6610922014ce5ba58cd7;hb=16eadad7d3f724ff400276a55bb2d4a13146c9b6;hp=666ae5d83d355498eda8a78c01c008c21d8de20f;hpb=a3ea7ceb4d4f5e2cb8ea421313e8939640fb898c;p=mono.git diff --git a/mcs/tests/test-483.cs b/mcs/tests/test-483.cs index 666ae5d83d3..ba6b97f8121 100644 --- a/mcs/tests/test-483.cs +++ b/mcs/tests/test-483.cs @@ -2,10 +2,19 @@ using System; -public class Tests { - - public static void Main () { +public class Tests +{ + public static void Main () + { Bar bar = null; try { bar.clone (); } catch (NullReferenceException) {} } } + +class B : Bar +{ + public override object clone () + { + return null; + } +}