blob: c7212d3f1832c6837abcccd1457062228886d8db (
plain)
1
2
3
4
5
6
7
8
9
10
|
// Checks that we don't try to allocate a 4TB array during compilation
fn foo() -> [u8; 4 * 1024 * 1024 * 1024 * 1024] {
[0; 4 * 1024 * 1024 * 1024 * 1024]
}
fn main () {
let x = foo ();
// { dg-warning "unused name" "" { target *-*-* } .-1 }
}
|