repo.or.cz
/
mono.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
2010-06-17 Geoff Norton <gnorton@novell.com>
[mono.git]
/
mono
/
tests
/
newobj-valuetype.cs
blob
9cc5de2b0d1ef93d188c107f09e98b4c3f6b84c8
1
2
namespace
Test
{
3
public struct
Struct
{
4
public int
a
;
5
6
public
Struct
(
int
val
) {
7
a
=
val
;
8
}
9
10
public static int
Main
() {
11
object
o
=
new
Struct
(
1
);
12
Struct s
=
new
Struct
(
2
);
13
14
if
(
s
.
a
!=
2
)
15
return
1
;
16
if
(((
Struct
)
o
).
a
!=
1
)
17
return
2
;
18
return
0
;
19
}
20
}
21
}