projects
/
mono.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
[mini] Fix test compiling when running !MOBILE
[mono.git]
/
mcs
/
tests
/
gtest-612.cs
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
}