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
[mono/tests] Fix out of tree build.
[mono-project.git]
/
mcs
/
tests
/
test-613.cs
blob
1ddf19c0d97812ee4a32dd3f0030a2644e2e36e5
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
}