summaryrefslogtreecommitdiffstats
path: root/src/test/ui/consts/unwind-abort.rs
blob: 6c94fc7b98b7575b48ed74c43522419f8789089e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// check-pass

#![feature(c_unwind, const_extern_fn)]

// We don't unwind in const-eval anyways.
const extern "C" fn foo() {
    panic!()
}

const fn bar() {
    foo();
}

fn main() {
    bar();
}