☰
Debian Codegraph
@
15:15.3.rel1-2
15:15.3.rel1-1
/
/
gcc
/
testsuite
/
rust
/
compile
/
torture
/
must_use1.rs
☽
☼
gcc/testsuite/rust/compile/torture/must_use1.rs
code
plain
raw
1
#[must_use = "TEST 1"]
2
fn test1() -> i32 {
3
123
4
}
5
6
#[must_use = "TEST 2"]
7
fn test2() -> i32 {
8
456
9
}
10
11
fn main() {
12
let _a = test1();
13
14
test2();
15
// { dg-warning "ignoring return value of" "" { target *-*-* } .-1 }
16
}