Jo Shields a575963da9 Imported Upstream version 3.6.0
Former-commit-id: da6be194a6b1221998fc28233f2503bd61dd9d14
2014-08-13 10:39:27 +01:00

31 lines
423 B
C#

using System;
public class TestObj {
static public int sbah = 5;
public int bah = 1;
public int boh;
public TestObj () {
boh = 2;
}
public int amethod () {
return boh;
}
public static int Main () {
TestObj obj = new TestObj ();
TestObj clone;
if (sbah + obj.bah + obj.amethod () != 8)
return 1;
clone = (TestObj)obj.MemberwiseClone ();
if (clone.boh != 2)
return 1;
return 0;
}
}