☰
Debian Codegraph
@
15:15.3.rel1-2
15:15.3.rel1-1
/
/
gcc
/
testsuite
/
rust
/
compile
/
torture
/
if_elif_else_expr1.rs
☽
☼
gcc/testsuite/rust/compile/torture/if_elif_else_expr1.rs
code
plain
raw
1
fn test(x: i32) -> i32 {
2
if x == 10 {
3
123
4
} else if x < 10 {
5
456
6
} else {
7
789
8
}
9
}
10
11
fn main() {
12
let a = test(1);
13
// { dg-warning "unused name" "" { target *-*-* } .-1 }
14
}