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
Fix DateTime.Now and CurrentTimeToUtc during DST transition time (#4172)
[mono-project.git]
/
mcs
/
tests
/
gtest-612.cs
blob
dac47d12e3fb0702145c06abf48654d9ea7f60b4
1
using
System
;
2
3
class
MainClass
4
{
5
static byte
count
;
6
7
public static int
Main
()
8
{
9
var
x
=
Left
() ??
Right
();
10
if
(
count
!=
1
)
11
return
1
;
12
13
switch
(
Left
()) {
14
case
0
:
15
return
2
;
16
}
17
18
if
(
count
!=
2
)
19
return
3
;
20
21
Console
.
WriteLine
(
"ok"
);
22
return
0
;
23
}
24
25
static int
?
Left
()
26
{
27
return
++
count
;
28
}
29
30
static int
?
Right
()
31
{
32
return
0
;
33
}
34
}