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 LLVM linker flags for 6.0.
[mono-project.git]
/
mcs
/
tests
/
gtest-270.cs
blob
d8b9d56791d743cf0f91eab036f6198df32b6207
1
using
System
;
2
3
class
X
4
{
5
static int
Test
(
int
?
a
)
6
{
7
switch
(
a
) {
8
case
0
:
9
return
0
;
10
case
1
:
11
return
1
;
12
13
default
:
14
return
-
1
;
15
}
16
}
17
18
public static int
Main
()
19
{
20
if
(
Test
(
null
) != -
1
)
21
return
1
;
22
if
(
Test
(
0
) !=
0
)
23
return
2
;
24
25
return
0
;
26
}
27
}