Merge pull request #1821 from iainx/replace-getline
[mono-project.git] / mcs / errors / cs0247.cs
blob1acaf6151dd0088f2919bc0b9944345ec7aabf91
1 // CS0247: Cannot use a negative size with stackalloc
2 // Line: 7
3 // Compiler options: -unsafe
5 public class MainClass {
6 static unsafe void Main () {
7 int* ptr = stackalloc int[-1];