mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
4064116df4
Add LinkerObject check and more tests
43 lines
1.4 KiB
Solidity
43 lines
1.4 KiB
Solidity
contract A {
|
|
function longdata() pure external returns (bytes memory) {
|
|
return
|
|
"xasopca.pngaibngidak.jbtnudak.cAP.BRRSMCPJAGPD KIAJDOMHUKR,SCPID"
|
|
"xasopca.pngaibngidak.jbtnudak.cAP.BRRSMCPJAGPD KIAJDOMHUKR,SCPID"
|
|
"M,SEYBDXCNTKIMNJGO;DUIAQBQUEHAKMPGIDSAJCOUKANJBCUEBKNA.GIAKMV.TI"
|
|
"AJMO<KXBANJCPGUD ABKCJIDHA NKIMAJU,EKAMHSO;PYCAKUM,L.UCA MR;KITA"
|
|
"M,SEYBDXCNTKIMNJGO;DUIAQBQUEHAKMPGIDSAJCOUKANJBCUEBKNA.GIAKMV.TI"
|
|
"AJMO<KXBANJCPGUD ABKCJIDHA NKIMAJU,EKAMHSO;PYCAKUM,L.UCA MR;KITA"
|
|
" .RPOKIDAS,.CKUMT.,ORKAD ,NOKIDHA .CGKIAD OVHAMS CUAOGT DAKN OIT"
|
|
"xasopca.pngaibngidak.jbtnudak.cAP.BRRSMCPJAGPD KIAJDOMHUKR,SCPID"
|
|
"M,SEYBDXCNTKIMNJGO;DUIAQBQUEHAKMPGIDSAJCOUKANJBCUEBKNA.GIAKMV.TI"
|
|
"AJMO<KXBANJCPGUD ABKCJIDHA NKIMAJU,EKAMHSO;PYCAKUM,L.UCA MR;KITA"
|
|
"apibakrpidbacnidkacjadtnpdkylca.,jda,r.kuadc,jdlkjd',c'dj, ncg d"
|
|
"anosumantkudkc,djntudkantuadnc,ui,c.ud,.nujdncud,j.rsch'pkl.'pih";
|
|
}
|
|
}
|
|
|
|
contract C {
|
|
constructor() {
|
|
}
|
|
|
|
function a() external returns (bytes memory) {
|
|
return type(A).creationCode;
|
|
}
|
|
|
|
function b() external returns (A) {
|
|
return new A();
|
|
}
|
|
|
|
function test() public view returns (bool) {
|
|
uint x;
|
|
assembly {
|
|
x := codesize()
|
|
}
|
|
return type(A).creationCode.length < x &&
|
|
x < 2 * type(A).creationCode.length;
|
|
}
|
|
}
|
|
|
|
// ----
|
|
// test() -> true
|