mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
04cf4867fe
Also make sure that `i32.drop/i64.drop` won't silently drop its arguments, as they may have side-effects.
23 lines
414 B
Plaintext
23 lines
414 B
Plaintext
{
|
|
function not_main() {
|
|
i64.drop(i64.add(0, 1))
|
|
}
|
|
}
|
|
// ====
|
|
// wasm: true
|
|
// ----
|
|
// Text:
|
|
// (module
|
|
// (memory $memory (export "memory") 1)
|
|
//
|
|
// (func $not_main
|
|
// (block $label_
|
|
// (drop (i64.add (i64.const 0) (i64.const 1)))
|
|
// )
|
|
// )
|
|
//
|
|
// )
|
|
//
|
|
// Binary:
|
|
// 0061736d01000000010401600000020100030201000503010001060100070a01066d656d6f727902000a0d010b000240420042017c1a0b0b
|