[mono/tests] Fix out of tree build.
[mono-project.git] / mcs / tests / test-927.cs
blob3a9df11b232c6b69deffea1d8ff96f759f6fbc75
1 // Compiler options: -unsafe
3 using System;
5 class MainClass
7 static int called;
9 public static double[] GetTempBuffer ()
11 ++called;
12 return new double[4];
15 public static int Main ()
17 unsafe {
18 fixed (double* dummy = GetTempBuffer()) {
22 if (called != 1)
23 return 1;
25 return 0;