mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Fix v1/v2 tests to behave like they did pre-0.8.0
This commit is contained in:
parent
299873182b
commit
3e8e5f3bf9
@ -1,5 +1,5 @@
|
||||
==== Source: A ====
|
||||
pragma abicoder v2;
|
||||
pragma abicoder v2;
|
||||
|
||||
struct Data {
|
||||
uint a;
|
||||
@ -19,6 +19,8 @@ contract B {
|
||||
}
|
||||
}
|
||||
==== Source: B ====
|
||||
pragma abicoder v1;
|
||||
|
||||
import "A";
|
||||
|
||||
contract C is B {
|
||||
@ -31,5 +33,5 @@ contract C is B {
|
||||
// ----
|
||||
// test() -> 77
|
||||
// gas irOptimized: 133635
|
||||
// gas legacy: 156573
|
||||
// gas legacyOptimized: 112940
|
||||
// gas legacy: 156449
|
||||
// gas legacyOptimized: 112943
|
||||
|
@ -1,5 +1,5 @@
|
||||
==== Source: A ====
|
||||
pragma abicoder v2;
|
||||
pragma abicoder v2;
|
||||
|
||||
struct Data {
|
||||
uint value;
|
||||
@ -23,6 +23,8 @@ contract B {
|
||||
}
|
||||
}
|
||||
==== Source: B ====
|
||||
pragma abicoder v1;
|
||||
|
||||
import "A";
|
||||
|
||||
contract C is B {
|
||||
@ -39,4 +41,4 @@ contract C is B {
|
||||
// ----
|
||||
// test() -> 5, 10
|
||||
// gas irOptimized: 92624
|
||||
// gas legacy: 100441
|
||||
// gas legacy: 100237
|
||||
|
Loading…
Reference in New Issue
Block a user