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
2009-10-20 Jb Evain <jbevain@novell.com>
[mcs.git]
/
tests
/
test-442.cs
blob
44968fe0de1f8ed9cff41b12be3546e6ff090d95
1
// Compiler options: -unsafe
2
3
using
System
;
4
5
namespace
ConsoleApplication1
{
6
class
Program
{
7
static unsafe 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