dd547c45d4
Former-commit-id: fb75898888a02f4d3a74cf0a5b841681bc4c7fa8
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;
|
|
}
|
|
}
|