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-04-01 Jb Evain <jbevain@novell.com>
[mcs.git]
/
errors
/
cs0213.cs
blob
f0573110ecd33694907cf3d6097c3f1c63f0237c
1
// cs0213.cs: You cannot use the fixed statement to take the address of an already fixed expression
2
// Line: 12
3
// Compiler options: -unsafe
4
5
class
UnsafeClass
{
6
unsafe
UnsafeClass
() {
7
int value
=
5
;
8
Calculate
(
value
);
9
}
10
11
unsafe void
Calculate
(
int value
) {
12
fixed
(
int
*
x
= &
value
) {}
13
}
14
}
15
16