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
Fix LLVM linker flags for 6.0.
[mono-project.git]
/
mcs
/
tests
/
gtest-048.cs
blob
99f3b27595501c03a51ca7eca6b218ba7ab47ab6
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
public static void
Main
()
26
{
27
Foo foo
=
new
Foo
();
28
Stack
<
Foo
>
stack
=
new
Stack
<
Foo
> ();
29
stack
.
Add
(
foo
);
30
}
31
}