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