projects
/
mono.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
2004-06-05 Atsushi Enomoto <atsushi@ximian.com>
[mono.git]
/
mono
/
tests
/
obj.cs
1
using System;
2
3
public class TestObj {
4
static public int sbah = 5;
5
public int bah = 1;
6
public int boh;
7
8
public TestObj () {
9
boh = 2;
10
}
11
public int amethod () {
12
return boh;
13
}
14
public static int Main () {
15
TestObj obj = new TestObj ();
16
TestObj clone;
17
18
if (sbah + obj.bah + obj.amethod () != 8)
19
return 1;
20
21
clone = (TestObj)obj.MemberwiseClone ();
22
23
if (clone.boh != 2)
24
return 1;
25
26
return 0;
27
}
28
}
29
30