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
[corlib] Add a special method for XI so the linker does not always have to generate it.
[mono-project.git]
/
mcs
/
errors
/
cs0247.cs
blob
1acaf6151dd0088f2919bc0b9944345ec7aabf91
1
// CS0247: 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