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
[interp] Reduce computation under calc_section mutex
[mono-project.git]
/
mcs
/
tests
/
test-442.cs
blob
6074e70860f0ecb9424f0e46755aa9e4e3686761
1
// Compiler options: -unsafe
2
3
using
System
;
4
5
namespace
ConsoleApplication1
{
6
class
Program
{
7
unsafe public static void
Main
(
string
[]
args
) {
8
int
[]
i
=
new int
[]
{ 10 }
;
9
fixed
(
int
*
p
=
i
) {
10
int
*[]
q
=
new int
*[]
{ p }
;
11
*
q
[
0
] =
5
;
12
Console
.
WriteLine
(*
q
[
0
]);
13
}
14
}
15
}
16
}
17