projects
/
mono.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
* pie.cs: Made the output image little organized and added a
[mono.git]
/
mcs
/
tests
/
unsafe-4.cs
1
unsafe class X {
2
static int v;
3
static int v_calls;
4
5
static int* get_v ()
6
{
7
v_calls++;
8
return &v;
9
}
10
11
static int Main ()
12
{
13
if ((*get_v ())++ != 0)
14
return 1;
15
if (v != 1)
16
return 2;
17
if (v_calls != 1)
18
return 3;
19
return 0;
20
}
21
}