rust/src/test/ui/feature-gates/feature-gate-rust_cold_cc.rs
Scott McMurray e90be842fb Add support for emitting functions with coldcc in LLVM
The eventual goal is to try using this for things like the internal panicking stuff, to see whether it helps.
2022-05-30 00:19:23 -07:00

22 lines
555 B
Rust

#![crate_type = "lib"]
extern "rust-cold" fn fu() {} //~ ERROR rust-cold is experimental
trait T {
extern "rust-cold" fn mu(); //~ ERROR rust-cold is experimental
extern "rust-cold" fn dmu() {} //~ ERROR rust-cold is experimental
}
struct S;
impl T for S {
extern "rust-cold" fn mu() {} //~ ERROR rust-cold is experimental
}
impl S {
extern "rust-cold" fn imu() {} //~ ERROR rust-cold is experimental
}
type TAU = extern "rust-cold" fn(); //~ ERROR rust-cold is experimental
extern "rust-cold" {} //~ ERROR rust-cold is experimental