repo.or.cz
/
mcs.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
2010-06-21 Atsushi Enomoto <atsushi@ximian.com>
[mcs.git]
/
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
}