]> git.lizzy.rs Git - rust.git/blob - tests/codegen/intrinsic-no-unnamed-attr.rs
Rollup merge of #107769 - compiler-errors:pointer-like, r=eholk
[rust.git] / tests / codegen / intrinsic-no-unnamed-attr.rs
1 // compile-flags: -C no-prepopulate-passes
2
3 #![feature(intrinsics)]
4
5 extern "rust-intrinsic" {
6     fn sqrtf32(x: f32) -> f32;
7 }
8 // CHECK: @llvm.sqrt.f32(float) #{{[0-9]*}}
9
10 fn main() {
11     unsafe { sqrtf32(0.0f32); }
12 }