summaryrefslogtreecommitdiff
path: root/gcc/testsuite/rust/compile/torture/arrays5.rs
blob: 58950a17a1563f9c1e57d0ae16eb8273d6ad5120 (plain)
1
2
3
4
5
6

// Checks that we don't try to allocate a 4TB array during compilation
fn main () {
    let x = [0; 4 * 1024 * 1024 * 1024 * 1024];
    // { dg-warning "unused name" "" { target *-*-* } .-1 }
}