projects
/
mono.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
2006-04-26 Atsushi Enomoto <atsushi@ximian.com>
[mono.git]
/
mcs
/
tests
/
gtest-211.cs
1
class MyTest {
2
static void f (bool a, bool b)
3
{
4
if (a != b)
5
throw new System.Exception ("Something wrong: " + a + " vs. " + b);
6
}
7
public static void Main()
8
{
9
int? x = null;
10
int? y = 0;
11
f (false, x == 0);
12
f (true, x != 0);
13
f (false, x == y);
14
f (true, x != y);
15
f (true, x == null);
16
f (false, x != null);
17
18
f (true, 0 == y);
19
f (false, 0 != y);
20
f (false, null == y);
21
f (true, null != y);
22
}
23
}