]> git.lizzy.rs Git - rust.git/blob - src/test/run-make-fulldeps/issue-47551/eh_frame-terminator.rs
Rollup merge of #99194 - simlay:simlay/update-rust-gdbgui-gdb-args-to-gdb-cmd, r...
[rust.git] / src / test / run-make-fulldeps / issue-47551 / eh_frame-terminator.rs
1 // run-pass
2
3 #[derive(Clone, Copy)]
4 struct Foo {
5     array: [u64; 10240],
6 }
7
8 impl Foo {
9     const fn new() -> Self {
10         Self {
11             array: [0x1122_3344_5566_7788; 10240]
12         }
13     }
14 }
15
16 static BAR: [Foo; 10240] = [Foo::new(); 10240];
17
18 fn main() {
19     let bt = std::backtrace::Backtrace::force_capture();
20     println!("Hello, world! {:?}", bt);
21     println!("{:x}", BAR[0].array[0]);
22 }