Sort tests.

This commit is contained in:
chriseth
2020-03-19 14:42:25 +01:00
parent 8834b1acaf
commit f25157a5f8
295 changed files with 0 additions and 0 deletions
@@ -0,0 +1,27 @@
contract C {
function f() public {
assembly {
let d:= 0x10
function asmfun(a, b, c) - > x, y, z {
x := g(a)
function g(r) - > s {
s := mul(r, r)
}
y := g(b)
z := 7
}
let a1, b1, c1 := asmfun(1, 2, 3)
mstore(0x00, a1)
mstore(0x20, b1)
mstore(0x40, c1)
mstore(0x60, d)
return (0, 0x80)
}
}
}
// ====
// compileViaYul: also
// ----
// f() -> 0x1, 0x4, 0x7, 0x10