repo.or.cz
/
mcs.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
add failing test for bnc550722
[mcs.git]
/
tests
/
gtest-048.cs
blob
b1335e2a2bd59733d38c9bd87eb4359bf371d9b8
1
// This fixed a problem in the JIT.
2
3
public class
Stack
<
T
>
4
{
5
T
[]
data
;
6
7
public
Stack
()
8
{
9
data
=
new
T
[
10
];
10
}
11
12
public void
Add
(
T t
)
13
{
14
data
[
0
] =
t
;
15
}
16
}
17
18
struct
Foo
19
{
20
int
a
;
21
}
22
23
class
X
24
{
25
static void
Main
()
26
{
27
Foo foo
=
new
Foo
();
28
Stack
<
Foo
>
stack
=
new
Stack
<
Foo
> ();
29
stack
.
Add
(
foo
);
30
}
31
}