diff options
Diffstat (limited to 'src/test/codegen/intrinsic-no-unnamed-attr.rs')
-rw-r--r-- | src/test/codegen/intrinsic-no-unnamed-attr.rs | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/test/codegen/intrinsic-no-unnamed-attr.rs b/src/test/codegen/intrinsic-no-unnamed-attr.rs new file mode 100644 index 000000000..c8a8e0b3e --- /dev/null +++ b/src/test/codegen/intrinsic-no-unnamed-attr.rs @@ -0,0 +1,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); } +} |