a575963da9
Former-commit-id: da6be194a6b1221998fc28233f2503bd61dd9d14
15 lines
219 B
C#
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;
|
|
}
|
|
}
|