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
Merge pull request #1821 from iainx/replace-getline
[mono-project.git]
/
mcs
/
errors
/
cs0214-9.cs
blob
f80a80ea32674d58ea4d9ffe776121533f5f6cec
1
// CS214: Pointers and fixed size buffers may only be used in an unsafe context
2
// Line: 21
3
// Compiler options: -unsafe
4
5
public unsafe delegate int
*
Bar
();
6
7
class
X
8
{
9
unsafe static int
*
Test
()
10
{
11
return null
;
12
}
13
14
static void
Main
()
15
{
16
Bar b
;
17
unsafe
{
18
b
=
Test
;
19
}
20
21
b
();
22
}
23
}