projects
/
mono.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
* default.build: Fix relative path to key. Avoid use of ugly foreach
[mono.git]
/
mcs
/
errors
/
cs0212-3.cs
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
}