summaryrefslogtreecommitdiffstats
path: root/src/test/ui/unwind-abis/feature-gate-c-unwind-enabled.rs
blob: 6ff5dbda2d5604ff9e47b887dd44f023267414c5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// Test that the "C-unwind" ABI is feature-gated, and *can* be used when the
// `c_unwind` feature gate is enabled.

// check-pass

#![feature(c_unwind)]

extern "C-unwind" fn f() {}

fn main() {
    f();
}