Jo Shields a575963da9 Imported Upstream version 3.6.0
Former-commit-id: da6be194a6b1221998fc28233f2503bd61dd9d14
2014-08-13 10:39:27 +01:00

15 lines
219 B
C#

// Compiler options: -unsafe
unsafe class T {
public static int Main () {
int len = 10;
int* x = stackalloc int [len];
for (int i = 0; i < len; i++)
{
if (x [i] != 0)
return i + 1;
}
return 0;
}
}