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
(DISTFILES): Comment out a few missing files.
[mono-project.git]
/
mcs
/
errors
/
cs0212.cs
blob
32ed536a21c162f86ce9fa0f1bb6f60231f98c07
1
// cs0212: You can only take the address of an unfixed expression inside
2
// a fixed statement initializer.
3
// Line: 19
4
// Compiler options: -unsafe
5
6
using
System
;
7
8
class
X
9
{
10
public int
x
;
11
public
X
()
12
{
13
this
.
x
=
4
;
14
}
15
16
public unsafe static void
Main
()
17
{
18
X x
=
new
X
();
19
int
*
p
= &
x
.
x
;
20
}
21
}