Debian Codegraph @

gcc/testsuite/rust/compile/torture/if_elif_else_expr1.rs

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 }