mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Test for external calls.
This commit is contained in:
parent
0e875ec4d7
commit
c4c0d0502d
14
test/libsolidity/semanticTests/fixedPoint/calls.sol
Normal file
14
test/libsolidity/semanticTests/fixedPoint/calls.sol
Normal 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
|
Loading…
Reference in New Issue
Block a user