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-09-02 Jb Evain <jbevain@novell.com>
[mcs.git]
/
errors
/
cs0212-3.cs
blob
03f6562406e63345746c5992f8c909bd72d45aa9
1
// cs0212-3.cs: You can only take the address of unfixed expression inside of a fixed statement initializer
2
// Line: 10
3
// Compiler options: -unsafe
4
5
struct
Foo
{
6
public float
f
;
7
public void
foo
()
8
{
9
unsafe
{
10
float
*
pf1
= &
f
;
11
}
12
}
13
}
14
15
class
Test
{
16
static void
Main
()
17
{
18
Foo x
=
new
Foo
();
19
x
.
foo
();
20
}
21
}