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
[mcs] Reset also all partial parts current-type
[mono-project.git]
/
mcs
/
errors
/
cs0212-2.cs
blob
9377dc2545548489ac189035e3e05cfa6696ae02
1
// CS0212: 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
}