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
Take stars out of types where they make more sense.
[mono-project.git]
/
mcs
/
tests
/
gtest-636.cs
blob
9c44fdf69a95673469fdfee33bb2c803436f5aed
1
using
System
;
2
3
class
MainClass
4
{
5
public static int
Main
()
6
{
7
var
res
=
XX
() |
YY
();
8
if
(!
res
.
Value
)
9
return
1
;
10
11
if
(
xx
!=
1
)
12
return
2
;
13
14
if
(
yy
!=
1
)
15
return
2
;
16
17
return
0
;
18
}
19
20
static int
xx
;
21
static bool
XX
()
22
{
23
++
xx
;
24
Console
.
WriteLine
(
"XX"
);
25
return true
;
26
}
27
28
static int
yy
;
29
static bool
?
YY
()
30
{
31
if
(
xx
==
1
)
32
++
yy
;
33
34
Console
.
WriteLine
(
"YY"
);
35
return true
;
36
}
37
}