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
/
newobj-valuetype.cs
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
}