Debian Codegraph @

gcc/testsuite/rust/compile/match6.rs

raw
1 fn foo() -> bool {
2 true
3 }
4
5 fn int32() -> i32 {
6 1
7 }
8
9 fn bar() -> i32 {
10 match foo() {
11 true => int32(),
12 false => 0
13 }
14 }
15
16 fn main() -> () {
17 bar();
18 }