projects
/
mono.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
[xbuild] Vbc task - make error column check a little non-specific.
[mono.git]
/
mcs
/
tests
/
gtest-435.cs
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