mirror of
https://git.proxmox.com/git/rustc
synced 2025-08-09 20:59:16 +00:00
14 lines
231 B
Rust
14 lines
231 B
Rust
//@ compile-flags: -O
|
|
#![crate_type = "lib"]
|
|
#![feature(core_intrinsics)]
|
|
|
|
use std::intrinsics::cold_path;
|
|
|
|
#[no_mangle]
|
|
pub fn test_cold_path(x: bool) {
|
|
cold_path();
|
|
}
|
|
|
|
// CHECK-LABEL: @test_cold_path(
|
|
// CHECK-NOT: cold_path
|