ea5caba957
Former-commit-id: f3008ca867fe7e4b7ae9b9a8844c0ad5798925a9
28 lines
314 B
C#
28 lines
314 B
C#
// Compiler options: -unsafe
|
|
|
|
using System;
|
|
|
|
class MainClass
|
|
{
|
|
static int called;
|
|
|
|
public static double[] GetTempBuffer ()
|
|
{
|
|
++called;
|
|
return new double[4];
|
|
}
|
|
|
|
public static int Main ()
|
|
{
|
|
unsafe {
|
|
fixed (double* dummy = GetTempBuffer()) {
|
|
}
|
|
}
|
|
|
|
if (called != 1)
|
|
return 1;
|
|
|
|
return 0;
|
|
}
|
|
}
|