Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cs0247.cs « errors « mcs - github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 4558366cb0da0a08a30682c8bbaf6bf55246c2cc (plain)
1
2
3
4
5
6
7
8
9
10
11
// cs0247.cs: Cannot use a negative size with stackalloc
// Line: 7
// Compiler options: -unsafe

public class MainClass {
        static unsafe void Main () {
                int* ptr = stackalloc int[-1];
        }
}