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
[corlib] Fix a few NSLogWriter issues. (#13799)
[mono-project.git]
/
mcs
/
tests
/
test-dictinit-04.cs
blob
570e77ceec8b13a4b1536a69b6c0b61c037942d8
1
// Compiler options: -unsafe
2
3
unsafe class
C
4
{
5
int
*
X
;
6
7
static int
Main
()
8
{
9
var
ptrs
=
new
[]
{ 0 }
;
10
11
fixed
(
int
*
p
=
ptrs
) {
12
new
C
(
p
) {
13
X
= {
14
[
0
] =
1
15
}
16
};
17
}
18
19
if
(
ptrs
[
0
] !=
1
)
20
return
1
;
21
22
return
0
;
23
}
24
25
C
(
int
*
x
)
26
{
27
X
=
x
;
28
}
29
}