More semantic tests.

This commit is contained in:
Daniel Kirchner 2020-07-09 13:14:33 +02:00 committed by Leonardo Alt
parent c3e13b6733
commit 41710acbca
3 changed files with 27 additions and 0 deletions

View File

@ -0,0 +1,9 @@
contract C {
uint constant x = 1 ether + 1 gwei + 1 wei;
function f() public view returns(uint) { return x; }
}
// ====
// compileViaYul: also
// ----
// f() -> 1000000001000000001

View File

@ -0,0 +1,9 @@
contract C {
uint constant x = 1 ether;
function f() public view returns(uint) { return x; }
}
// ====
// compileViaYul: also
// ----
// f() -> 1000000000000000000

View File

@ -0,0 +1,9 @@
contract C {
uint constant x = 1 wei;
function f() public view returns(uint) { return x; }
}
// ====
// compileViaYul: also
// ----
// f() -> 1