repo.or.cz
/
mcs.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
add failing test for bnc550722
[mcs.git]
/
tests
/
gtest-391.cs
blob
580d6ce3936866b6463f68e630bb3a3749f1b8fe
1
using
System
;
2
3
class
C
4
{
5
bool
Test_1
()
6
{
7
bool
?
xx
=
null
;
8
return
xx
??
true
;
9
}
10
11
public static int
Main
()
12
{
13
string
a
=
null
;
14
string
b
=
null
??
"a"
;
15
if
(
b
!=
"a"
)
16
return
1
;
17
18
int
?
i
=
null
??
null
;
19
if
(
i
!=
null
)
20
return
2
;
21
22
object
z
=
a
??
null
;
23
if
(
i
!=
null
)
24
return
3
;
25
26
string
p
=
default
(
string
) ??
"a"
;
27
if
(
p
!=
"a"
)
28
return
4
;
29
30
string
p2
=
"x"
??
"a"
;
31
if
(
p2
!=
"x"
)
32
return
5
;
33
34
return
0
;
35
}
36
}