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
update
[mcs.git]
/
tests
/
gtest-435.cs
blob
ac5e867160ad4a70e32125029c40a0da6c025a11
1
using
System
;
2
3
namespace
testcase
4
{
5
public class
Program
6
{
7
private static int
Main
()
8
{
9
decimal
?
D1
=
null
;
10
decimal
?
D2
=
7
;
11
12
if
(
D1
==
D2
) {
13
Console
.
WriteLine
(
"null == 7 incorrect"
);
14
return
1
;
15
}
else if
(
D1
!=
D2
) {
16
Console
.
WriteLine
(
"null != 7 correct"
);
17
return
0
;
18
}
19
return
2
;
20
}
21
}
22
}
23