]> git.lizzy.rs Git - rust.git/blob - tests/run-make-fulldeps/issue-47551/eh_frame-terminator.rs
Rollup merge of #106427 - mejrs:translation_errors, r=davidtwco
[rust.git] / tests / 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 }