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
TaskAwaiter from CoreFX
[mono-project.git]
/
mcs
/
errors
/
cs0208-19.cs
blob
82b0f4395e3f0d77e10d8c993c75c06a5933d832
1
// CS0208: Cannot take the address of, get the size of, or declare a pointer to a managed type `CS208.Foo'
2
// Line: 17
3
// Compiler options: -unsafe
4
5
namespace
CS208
6
{
7
public struct
Foo
8
{
9
public string
PP { get; set; }
10
}
11
12
public class
Bar
13
{
14
unsafe static void
Main
()
15
{
16
Foo f
=
new
Foo
();
17
void
*
s
= &
f
;
18
}
19
}
20
}