projects
/
mono.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
2004-02-17 Carlos Guzm��n ��lvarez <carlosga@telefonica.net>
[mono.git]
/
mcs
/
errors
/
cs0208.cs
1
// cs0208.cs: Cannot take the address or size of a variable of a managed type ('cs208.Foo')
2
// Line: 20
3
// Compiler options: -unsafe
4
5
namespace cs208
6
{
7
public class Foo
8
{
9
public int Add (int a, int b)
10
{
11
return a + b;
12
}
13
}
14
15
public class Bar
16
{
17
unsafe static void Main ()
18
{
19
Foo f = new Foo ();
20
void *s = &f;
21
}
22
}
23
}