Test for external calls.

This commit is contained in:
chriseth 2021-08-19 16:13:18 +02:00
parent 0e875ec4d7
commit c4c0d0502d

View File

@ -0,0 +1,14 @@
contract C {
function f(fixed128x2 x) public view returns (ufixed64x4) {
return ufixed64x4(ufixed128x4(ufixed128x2(x)));
}
function test() public view returns (ufixed64x4 x, fixed y) {
fixed64x1 a = 1234.3;
x = this.f(a);
y = this.f(-1234.3);
}
}
// ====
// compileViaYul: also
// ----
// test() -> 1234.3000, 1844674407369720.861600000000000000