[Sol->Yul] Compile some tests with yul

This commit is contained in:
Mathias Baumann
2019-06-11 17:44:36 +02:00
parent 6a0976ed5e
commit 9e23d6d05e
7 changed files with 13 additions and 0 deletions
@@ -9,5 +9,7 @@ contract C {
}
}
}
// ====
// compileViaYul: also
// ----
// f() -> 6
@@ -9,5 +9,7 @@ contract C {
}
}
}
// ====
// compileViaYul: also
// ----
// f() -> 5
@@ -13,6 +13,8 @@ contract C {
}
}
}
// ====
// compileViaYul: also
// ----
// f(uint256): 0 -> 2
// f(uint256): 1 -> 18
@@ -24,6 +24,8 @@ contract C {
return 500;
}
}
// ====
// compileViaYul: also
// ----
// call(uint256): 0 -> 0
// call(uint256): 1 -> 1
@@ -4,6 +4,7 @@ contract C {
}
}
// ====
// compileViaYul: also
// EVMVersion: >=constantinople
// ----
// f(uint256): 7 -> 28
@@ -3,6 +3,8 @@ contract C {
return a + b + c + d + e;
}
}
// ====
// compileViaYul: also
// ----
// f(uint256,uint256,uint256,uint256,uint256): 1, 1, 1, 1, 1
// -> 5
@@ -3,6 +3,8 @@ contract C {
return a + b + c + d + e;
}
}
// ====
// compileViaYul: also
// ----
// f(uint256,uint256,uint256,uint256,uint256): 1, 1, 1, 1, 1
// # A comment on the function parameters. #