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
Merge pull request #4202 from marek-safar/compression
[mono-project.git]
/
mcs
/
tests
/
test-392.cs
blob
93468b70b3fcd71f539fc661741da9d54a97a380
1
public struct
C
2
{
3
struct
S
4
{
5
public int
i
;
6
public
S
(
int
i
)
7
{
8
this
.
i
=
i
;
9
}
10
}
11
12
static
S
[]
s
;
13
14
int
Test
()
15
{
16
int
i
=
0
;
17
s
=
new
S
[
1
];
18
if
(
s
.
Length
>
0
)
19
s
[
i
++] =
new
S
(
10
);
20
21
if
(
s
[
0
].
i
!=
10
)
22
return
1
;
23
24
return
0
;
25
}
26
27
public static int
Main
()
28
{
29
return new
C
().
Test
();
30
}
31
}