]> git.proxmox.com Git - rustc.git/blame - src/test/ui/mir/mir_heavy_promoted.rs
New upstream version 1.66.0+dfsg1
[rustc.git] / src / test / ui / mir / mir_heavy_promoted.rs
CommitLineData
b7449926 1// run-pass
0531ce1d
XL
2// ignore-emscripten apparently only works in optimized mode
3
5bcae85e 4const 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 9fn main() {
5bcae85e 10 println!("{}", TEST_DATA.len());
9cc50fc6 11}