2018-08-30 07:18:55 -05:00
|
|
|
// run-pass
|
2018-03-16 13:42:42 -05:00
|
|
|
// ignore-emscripten apparently only works in optimized mode
|
|
|
|
|
2016-08-23 01:07:23 -05:00
|
|
|
const TEST_DATA: [u8; 32 * 1024 * 1024] = [42; 32 * 1024 * 1024];
|
|
|
|
|
|
|
|
// Check that the promoted copy of TEST_DATA doesn't
|
|
|
|
// leave an alloca from an unused temp behind, which,
|
|
|
|
// without optimizations, can still blow the stack.
|
|
|
|
fn main() {
|
|
|
|
println!("{}", TEST_DATA.len());
|
|
|
|
}
|