summaryrefslogtreecommitdiffstats
path: root/src/test/codegen/intrinsic-no-unnamed-attr.rs
blob: c8a8e0b3e7a096ebe655f49d43c30c5e8a9a2d52 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// compile-flags: -C no-prepopulate-passes

#![feature(intrinsics)]

extern "rust-intrinsic" {
    fn sqrtf32(x: f32) -> f32;
}
// CHECK: @llvm.sqrt.f32(float) #{{[0-9]*}}

fn main() {
    unsafe { sqrtf32(0.0f32); }
}