]>
Commit | Line | Data |
---|---|---|
b7449926 | 1 | // run-pass |
0531ce1d XL |
2 | // ignore-emscripten apparently only works in optimized mode |
3 | ||
5bcae85e | 4 | const TEST_DATA: [u8; 32 * 1024 * 1024] = [42; 32 * 1024 * 1024]; |
223e47cc | 5 | |
5bcae85e SL |
6 | // Check that the promoted copy of TEST_DATA doesn't |
7 | // leave an alloca from an unused temp behind, which, | |
8 | // without optimizations, can still blow the stack. | |
9cc50fc6 | 9 | fn main() { |
5bcae85e | 10 | println!("{}", TEST_DATA.len()); |
9cc50fc6 | 11 | } |