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
2010-06-21 Atsushi Enomoto <atsushi@ximian.com>
[mcs.git]
/
errors
/
cs0212-2.cs
blob
76acc4c08eeec5a9b9902e45af03ec5664d95e44
1
// cs0212-2.cs: You can only take the address of unfixed expression inside of a fixed statement initializer
2
// Line: 17
3
// Compiler options: -unsafe
4
5
using
System
;
6
7
unsafe class
X
{
8
static void
Main
()
9
{
10
int
foo
=
0
;
11
Blah
(
ref
foo
);
12
13
}
14
15
static void
Blah
(
ref int
mptr
)
16
{
17
int
*
x
= &
mptr
;
18
}
19
}