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
"disable_omit_fp" can now be included in MONO_DEBUG
[mono-project.git]
/
mcs
/
tests
/
test-664.cs
blob
7e7fc8b0a3a25c36a7a0dcfc573bd321574a9bab
1
class
C
2
{
3
static bool
Test
(
string value
)
4
{
5
switch
(
value
) {
6
case
"1.0"
:
7
case
"2.0"
:
8
case
"3.0"
:
9
case
"4.0"
:
10
case
"5.0"
:
11
case
"6.0"
:
12
case
"7.0"
:
13
case null
:
14
return true
;
15
}
16
return false
;
17
}
18
19
public static int
Main
()
20
{
21
if
(!
Test
(
null
))
22
return
1
;
23
24
if
(!
Test
(
"6.0"
))
25
return
2
;
26
27
if
(
Test
(
"0"
))
28
return
3
;
29
30
return
0
;
31
}
32
}