From 7b7e38768c1eb29a3e139f43075e6758074009d0 Mon Sep 17 00:00:00 2001 From: hrkrshnn Date: Tue, 28 Sep 2021 10:54:12 +0200 Subject: [PATCH] Update tests. --- .../semanticTests/userDefinedValueType/calldata.sol | 12 ++++++------ .../userDefinedValueType/dirty_slot.sol | 6 +++--- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/test/libsolidity/semanticTests/userDefinedValueType/calldata.sol b/test/libsolidity/semanticTests/userDefinedValueType/calldata.sol index 98b73acc2..3596d2c99 100644 --- a/test/libsolidity/semanticTests/userDefinedValueType/calldata.sol +++ b/test/libsolidity/semanticTests/userDefinedValueType/calldata.sol @@ -51,13 +51,13 @@ contract C { // compileViaYul: also // ---- // test_f() -> true -// gas irOptimized: 122656 -// gas legacy: 125037 -// gas legacyOptimized: 122605 +// gas irOptimized: 122887 +// gas legacy: 126168 +// gas legacyOptimized: 123199 // test_g() -> true -// gas irOptimized: 95908 -// gas legacy: 100586 -// gas legacyOptimized: 95996 +// gas irOptimized: 96673 +// gas legacy: 101311 +// gas legacyOptimized: 96566 // addresses(uint256): 0 -> 0x18 // addresses(uint256): 1 -> 0x19 // addresses(uint256): 3 -> 0x1b diff --git a/test/libsolidity/semanticTests/userDefinedValueType/dirty_slot.sol b/test/libsolidity/semanticTests/userDefinedValueType/dirty_slot.sol index 4e500f53a..a74d02ff1 100644 --- a/test/libsolidity/semanticTests/userDefinedValueType/dirty_slot.sol +++ b/test/libsolidity/semanticTests/userDefinedValueType/dirty_slot.sol @@ -31,7 +31,7 @@ contract C { // write_a() -> // a() -> 0x2001 // write_b() -> -// b() -> 0xf00e000000000000000000000000000000000000000000000000000000000000 -// get_b(uint256): 0 -> 0xf000000000000000000000000000000000000000000000000000000000000000 -// get_b(uint256): 1 -> 0x0e00000000000000000000000000000000000000000000000000000000000000 +// b() -> 0x5403000000000000000000000000000000000000000000000000000000000000 +// get_b(uint256): 0 -> 0x5400000000000000000000000000000000000000000000000000000000000000 +// get_b(uint256): 1 -> 0x0300000000000000000000000000000000000000000000000000000000000000 // get_b(uint256): 2 -> FAILURE, hex"4e487b71", 0x32