☰
Debian Codegraph
@
15:15.3.rel1-2
15:15.3.rel1-1
/
/
gcc
/
testsuite
/
rust
/
compile
/
torture
/
arrays_index1.rs
☽
☼
gcc/testsuite/rust/compile/torture/arrays_index1.rs
code
plain
raw
1
fn main() {
2
let mut array: [i32; 3] = [0; 3];
3
4
let a = array[0];
5
// { dg-warning "unused name" "" { target *-*-* } .-1 }
6
let x = 0;
7
let mut c;
8
c = array[x+1];
9
}