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
In ilasm/tests:
[mcs.git]
/
errors
/
cs0247.cs
blob
4558366cb0da0a08a30682c8bbaf6bf55246c2cc
1
// cs0247.cs: Cannot use a negative size with stackalloc
2
// Line: 7
3
// Compiler options: -unsafe
4
5
public class
MainClass
{
6
static unsafe void
Main
() {
7
int
*
ptr
=
stackalloc int
[-
1
];
8
}
9
}
10
11