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
retag
[mcs.git]
/
errors
/
cs0255.cs
blob
16a3533c35f5827999001dc9179f15a37f6d00e3
1
// cs0255.cs: Cannot use stackalloc in finally or catch
2
// Line: 12
3
// Compiler options: -unsafe
4
5
unsafe class
X
{
6
7
static void
Main
()
8
{
9
try
{
10
}
catch
{
11
char
*
ptr
=
stackalloc char
[
10
];
12
}
13
}
14
}