More semantic tests.

This commit is contained in:
Daniel Kirchner
2020-07-13 18:07:11 +02:00
committed by Leonardo Alt
parent c3e13b6733
commit 41710acbca
3 changed files with 27 additions and 0 deletions
@@ -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
@@ -0,0 +1,9 @@
contract C {
uint constant x = 1 ether;
function f() public view returns(uint) { return x; }
}
// ====
// compileViaYul: also
// ----
// f() -> 1000000000000000000
@@ -0,0 +1,9 @@
contract C {
uint constant x = 1 wei;
function f() public view returns(uint) { return x; }
}
// ====
// compileViaYul: also
// ----
// f() -> 1