2010-06-17 Geoff Norton <gnorton@novell.com>
[mono.git] / mono / tests / obj.cs
blob84bba6ea4b028da46d03225c67b114d413da9d0e
1 using System;
3 public class TestObj {
4 static public int sbah = 5;
5 public int bah = 1;
6 public int boh;
8 public TestObj () {
9 boh = 2;
11 public int amethod () {
12 return boh;
14 public static int Main () {
15 TestObj obj = new TestObj ();
16 TestObj clone;
18 if (sbah + obj.bah + obj.amethod () != 8)
19 return 1;
21 clone = (TestObj)obj.MemberwiseClone ();
23 if (clone.boh != 2)
24 return 1;
26 return 0;