mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Update tests.
This commit is contained in:
@@ -40,4 +40,6 @@ contract C {
|
||||
// compileViaYul: also
|
||||
// ----
|
||||
// testRuntime() -> true
|
||||
// gas legacy: 100679
|
||||
// testCreation() -> true
|
||||
// gas legacy: 101937
|
||||
|
||||
@@ -26,3 +26,4 @@ contract C {
|
||||
// compileViaYul: also
|
||||
// ----
|
||||
// test() -> 7
|
||||
// gas legacy: 102192
|
||||
|
||||
@@ -25,3 +25,4 @@ contract C {
|
||||
// compileViaYul: also
|
||||
// ----
|
||||
// test() -> 42
|
||||
// gas legacy: 100138
|
||||
|
||||
@@ -36,3 +36,6 @@ contract C {
|
||||
// compileViaYul: also
|
||||
// ----
|
||||
// f(bytes): 0x20, 0x5, "abcde" -> 0
|
||||
// gas irOptimized: 249042
|
||||
// gas legacy: 239258
|
||||
// gas legacyOptimized: 238575
|
||||
|
||||
@@ -27,4 +27,5 @@ contract C {
|
||||
// compileViaYul: also
|
||||
// ----
|
||||
// test() -> 9, 7
|
||||
// gas legacy: 123394
|
||||
// t2() -> 9
|
||||
|
||||
@@ -22,3 +22,6 @@ contract C {
|
||||
// compileViaYul: also
|
||||
// ----
|
||||
// g() -> 2, 6
|
||||
// gas irOptimized: 170427
|
||||
// gas legacy: 172490
|
||||
// gas legacyOptimized: 171206
|
||||
|
||||
@@ -32,9 +32,16 @@ contract D {
|
||||
}
|
||||
}
|
||||
// ====
|
||||
// compileViaYul: also
|
||||
// EVMVersion: >=byzantium
|
||||
// compileViaYul: also
|
||||
// ----
|
||||
// f() -> 0x1 # This should work, next should throw #
|
||||
// gas legacy: 102944
|
||||
// fview() -> FAILURE
|
||||
// gas irOptimized: 98438674
|
||||
// gas legacy: 98438822
|
||||
// gas legacyOptimized: 98438615
|
||||
// fpure() -> FAILURE
|
||||
// gas irOptimized: 98438674
|
||||
// gas legacy: 98438822
|
||||
// gas legacyOptimized: 98438616
|
||||
|
||||
@@ -24,12 +24,15 @@ contract c {
|
||||
}
|
||||
|
||||
// ====
|
||||
// compileViaYul: also
|
||||
// compileToEwasm: also
|
||||
// compileViaYul: also
|
||||
// ----
|
||||
// x() -> 0, 0
|
||||
// y() -> 0, 0
|
||||
// set() ->
|
||||
// gas irOptimized: 101473
|
||||
// gas legacy: 101332
|
||||
// gas legacyOptimized: 101282
|
||||
// x() -> 1, 2
|
||||
// y() -> 3, 4
|
||||
// swap() ->
|
||||
|
||||
Reference in New Issue
Block a user