aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/rust/compile/array3.rs
blob: a56be9a0e8b6b33ffceb3a76e68952aa4f7aea6c (plain)
1
2
3
4
fn foo(state: &mut [u32; 16], a: usize) {
    // { dg-warning "function is never used: .foo." "" { target *-*-* } .-1 }
    state[a] = 1;
}