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
2010-04-13 Sebastien Pouliot <sebastien@ximian.com>
[mono-project.git]
/
mcs
/
tests
/
gtest-435.cs
blob
87fd579353703601fa049245640eb1da863a2b6f
1
using
System
;
2
3
namespace
testcase
4
{
5
public class
Program
6
{
7
static int
Main
()
8
{
9
DateTime
?
a
=
default
(
DateTime
?);
10
DateTime
?
b
=
default
(
DateTime
?);
11
bool
res
=
a
==
b
;
12
if
(!
res
)
13
return
4
;
14
15
res
=
a
!=
b
;
16
if
(
res
)
17
return
3
;
18
19
decimal
?
D1
=
null
;
20
decimal
?
D2
=
7
;
21
22
if
(
D1
==
D2
) {
23
Console
.
WriteLine
(
"null == 7 incorrect"
);
24
return
1
;
25
}
else if
(
D1
!=
D2
) {
26
Console
.
WriteLine
(
"null != 7 correct"
);
27
return
0
;
28
}
29
return
2
;
30
}
31
}
32
}
33