projects
/
mono.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Allow passing null to JsonArray.Add()
[mono.git]
/
mcs
/
tests
/
test-613.cs
1
//
2
// Checks that we do not short-circuit the bitwise and operation
3
// See bug: 359789
4
//
5
public class M {
6
static bool called;
7
8
public static bool g() {
9
called = true;
10
return false;
11
}
12
13
public static int Main() {
14
called = false;
15
System.Console.WriteLine (false & g());
16
if (!called)
17
return 1;
18
19
called = false;
20
System.Console.WriteLine (true | g());
21
if (!called)
22
return 1;
23
return 0;
24
}
25
}