mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Add and update tests
This commit is contained in:
1 parent
3edcfce478
commit
71bea997aa
8 files changed
+122
No files matched your search
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
@@ -0,0 +1,31 @@
|
||||
contract A {
|
||||
function f() public pure returns (string memory ret) {
|
||||
// 27000 bytes long data
|
||||
ret = "........................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................Line truncated
|
||||
}
|
||||
}
|
||||
|
||||
contract B is A {
|
||||
function g() public pure returns (bool) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
contract C is A {
|
||||
function g() public pure returns (bool) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
contract test {
|
||||
constructor() {
|
||||
new B();
|
||||
new C();
|
||||
}
|
||||
}
|
||||
// ====
|
||||
// EVMVersion: =paris
|
||||
// ----
|
||||
// Warning 5574: (0-27130): Contract code size is 27192 bytes and exceeds 24576 bytes (a limit introduced in Spurious Dragon). This contract may not be deployable on Mainnet. Consider enabling the optimizer (with a low "runs" value!), turning off revert strings, or using libraries.
|
||||
// Warning 5574: (27132-27224): Contract code size is 27218 bytes and exceeds 24576 bytes (a limit introduced in Spurious Dragon). This contract may not be deployable on Mainnet. Consider enabling the optimizer (with a low "runs" value!), turning off revert strings, or using libraries.
|
||||
// Warning 5574: (27226-27319): Contract code size is 27218 bytes and exceeds 24576 bytes (a limit introduced in Spurious Dragon). This contract may not be deployable on Mainnet. Consider enabling the optimizer (with a low "runs" value!), turning off revert strings, or using libraries.
|
||||
@@ -0,0 +1,32 @@
|
||||
contract A {
|
||||
function f() public pure returns (string memory ret) {
|
||||
// 27000 bytes long data
|
||||
ret = "........................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................Line truncated
|
||||
}
|
||||
}
|
||||
|
||||
contract B is A {
|
||||
function g() public pure returns (bool) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
contract C is A {
|
||||
function g() public pure returns (bool) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
contract test {
|
||||
constructor() {
|
||||
new B();
|
||||
new C();
|
||||
}
|
||||
}
|
||||
// ====
|
||||
// EVMVersion: =shanghai
|
||||
// ----
|
||||
// Warning 5574: (0-27130): Contract code size is 27186 bytes and exceeds 24576 bytes (a limit introduced in Spurious Dragon). This contract may not be deployable on Mainnet. Consider enabling the optimizer (with a low "runs" value!), turning off revert strings, or using libraries.
|
||||
// Warning 5574: (27132-27224): Contract code size is 27212 bytes and exceeds 24576 bytes (a limit introduced in Spurious Dragon). This contract may not be deployable on Mainnet. Consider enabling the optimizer (with a low "runs" value!), turning off revert strings, or using libraries.
|
||||
// Warning 5574: (27226-27319): Contract code size is 27211 bytes and exceeds 24576 bytes (a limit introduced in Spurious Dragon). This contract may not be deployable on Mainnet. Consider enabling the optimizer (with a low "runs" value!), turning off revert strings, or using libraries.
|
||||
// Warning 3860: (27321-27398): Contract initcode size is 54626 bytes and exceeds 49152 bytes (a limit introduced in Shanghai). This contract may not be deployable on Mainnet. Consider enabling the optimizer (with a low "runs" value!), turning off revert strings, or using libraries.
|
||||
@@ -0,0 +1,29 @@
|
||||
contract A {
|
||||
function f() public pure returns (string memory ret) {
|
||||
// 20000 bytes long data
|
||||
ret = "........................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................Line truncated
|
||||
}
|
||||
}
|
||||
|
||||
contract B is A {
|
||||
function g() public pure returns (bool) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
contract C is A {
|
||||
function g() public pure returns (bool) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
contract test {
|
||||
constructor() {
|
||||
new A();
|
||||
new B();
|
||||
new C();
|
||||
}
|
||||
}
|
||||
// ====
|
||||
// EVMVersion: =paris
|
||||
// ----
|
||||
@@ -0,0 +1,30 @@
|
||||
contract A {
|
||||
function f() public pure returns (string memory ret) {
|
||||
// 20000 bytes long data
|
||||
ret = "........................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................Line truncated
|
||||
}
|
||||
}
|
||||
|
||||
contract B is A {
|
||||
function g() public pure returns (bool) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
contract C is A {
|
||||
function g() public pure returns (bool) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
contract test {
|
||||
constructor() {
|
||||
new A();
|
||||
new B();
|
||||
new C();
|
||||
}
|
||||
}
|
||||
// ====
|
||||
// EVMVersion: =shanghai
|
||||
// ----
|
||||
// Warning 3860: (20321-20415): Contract initcode size is 60893 bytes and exceeds 49152 bytes (a limit introduced in Shanghai). This contract may not be deployable on Mainnet. Consider enabling the optimizer (with a low "runs" value!), turning off revert strings, or using libraries.
|
||||
Reference in new issue
Block a user