Verify that contracts cannot use float operations (#1504)

This commit is contained in:
Sergei Pepyakin
2019-01-21 14:04:58 +01:00
committed by Gav Wood
parent b57486c74f
commit f0dbcf5401
@@ -342,6 +342,22 @@ mod tests {
};
}
prepare_test!(no_floats,
r#"
(module
(func (export "call")
(drop
(f32.add
(f32.const 0)
(f32.const 1)
)
)
)
(func (export "deploy"))
)"#,
Err("gas instrumentation failed")
);
mod memories {
use super::*;