rust/tests/ui/numbers-arithmetic/saturating-float-casts-wasm.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

14 lines
287 B
Rust
Raw Normal View History

//@ run-pass
//@ only-wasm32
//@ compile-flags: -Zmir-opt-level=0 -C target-feature=+nontrapping-fptoint
#![feature(test, stmt_expr_attributes)]
#![deny(overflowing_literals)]
#[path = "saturating-float-casts-impl.rs"]
mod implementation;
pub fn main() {
implementation::run();
}