eol
[mcs.git] / tests / test-408.cs
blob141e994a634b40ca380490f5e81ed4b38c3182d0
1 // Compiler options: -unsafe
3 unsafe class T {
4 static int Main () {
5 int len = 10;
6 int* x = stackalloc int [len];
7 for (int i = 0; i < len; i++)
9 if (x [i] != 0)
10 return i + 1;
12 return 0;