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
[loader] LoadFrom of problematic images should reprobe
[mono-project.git]
/
mcs
/
errors
/
cs0208.cs
blob
0ab184d3c344227548af2554fd68c867fc42b1f6
1
// CS0208: Cannot take the address of, get the size of, or declare a pointer to 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
}