]> git.lizzy.rs Git - rust.git/blob - src/test/ui/unwind-abis/feature-gate-c-unwind-enabled.rs
Auto merge of #87150 - rusticstuff:simplify_wrapping_neg, r=m-ou-se
[rust.git] / src / test / ui / unwind-abis / feature-gate-c-unwind-enabled.rs
1 // Test that the "C-unwind" ABI is feature-gated, and *can* be used when the
2 // `c_unwind` feature gate is enabled.
3
4 // check-pass
5
6 #![feature(c_unwind)]
7
8 extern "C-unwind" fn f() {}
9
10 fn main() {
11     f();
12 }