summaryrefslogtreecommitdiffstats
path: root/src/test/run-make-fulldeps/issue-47551/eh_frame-terminator.rs
blob: a2c7a31b7c329b7654e806575805d70ec24eb9d8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
// run-pass

#[derive(Clone, Copy)]
struct Foo {
    array: [u64; 10240],
}

impl Foo {
    const fn new() -> Self {
        Self {
            array: [0x1122_3344_5566_7788; 10240]
        }
    }
}

static BAR: [Foo; 10240] = [Foo::new(); 10240];

fn main() {
    let bt = std::backtrace::Backtrace::force_capture();
    println!("Hello, world! {:?}", bt);
    println!("{:x}", BAR[0].array[0]);
}