Merge pull request #5714 from alexischr/update_bockbuild
[mono.git] / mcs / tests / test-927.cs
1 // Compiler options: -unsafe
2
3 using System;
4
5 class MainClass
6 {
7         static int called;
8
9         public static double[] GetTempBuffer ()
10         {
11                 ++called;
12                 return new double[4];
13         }
14
15         public static int Main ()
16         {
17                 unsafe {
18                         fixed (double* dummy = GetTempBuffer()) {
19                         }
20                 }
21
22                 if (called != 1)
23                         return 1;
24
25                 return 0;
26         }
27 }