repo.or.cz
/
mono-project.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
[rx] add missing project file generator helper files.
[mono-project.git]
/
mono
/
tests
/
obj.cs
blob
84bba6ea4b028da46d03225c67b114d413da9d0e
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