projects
/
mono.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Bump NuGet.BuildTasks to get new updates and switch to `dev` branch (#5566)
[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
}