about summary refs log tree commit diff
path: root/tests/codegen-llvm/intrinsics/cold_path.rs
blob: fd75324b671e2b1617facbd0dacb33791804b000 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
//@ compile-flags: -Copt-level=3
#![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