☰
Debian Codegraph
@
15:15.3.rel1-2
15:15.3.rel1-1
/
/
gcc
/
testsuite
/
rust
/
compile
/
torture
/
bools_eq.rs
☽
☼
gcc/testsuite/rust/compile/torture/bools_eq.rs
code
plain
raw
1
extern "C"
2
{
3
fn abort ();
4
}
5
6
fn beq (a: bool, b: bool) -> bool
7
{
8
let bools_eq = a == b;
9
bools_eq
10
}
11
12
pub fn main ()
13
{
14
let a = true;
15
let b = false;
16
let r = beq (a, b);
17
if r { unsafe { abort (); } }
18
}