repo.or.cz
/
mono-project.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
[mono/tests] Fix out of tree build.
[mono-project.git]
/
mcs
/
tests
/
test-927.cs
blob
3a9df11b232c6b69deffea1d8ff96f759f6fbc75
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
}