Use a special 'auto' type in type inference (#658)

This commit is contained in:
Daniel Wirtz
2019-06-12 13:54:07 +02:00
committed by GitHub
parent 334d944f67
commit d4313f1ed8
10 changed files with 483 additions and 460 deletions

View File

@ -6,6 +6,7 @@
(data (i32.const 8) "\1a\00\00\00\01\00\00\00\01\00\00\00\1a\00\00\00r\00e\00t\00a\00i\00n\00-\00i\003\002\00.\00t\00s")
(global $retain-i32/si (mut i32) (i32.const 0))
(global $retain-i32/ui (mut i32) (i32.const 0))
(global $retain-i32/ri (mut i32) (i32.const 0))
(export "memory" (memory $0))
(start $start)
(func $start:retain-i32 (; 1 ;) (type $FUNCSIG$v)
@ -254,6 +255,12 @@
call $~lib/builtins/abort
unreachable
end
i32.const 0
i32.load8_s
global.set $retain-i32/ri
i32.const 0
i32.load8_s
drop
)
(func $start (; 2 ;) (type $FUNCSIG$v)
call $start:retain-i32