2020-09-08 08:48:04 +00:00
|
|
|
pragma solidity >=0.4.0 <0.9.0;
|
2019-04-24 12:57:31 +00:00
|
|
|
|
|
|
|
contract InvalidTest {
|
|
|
|
|
|
|
|
function() internal storedFn;
|
|
|
|
uint public x;
|
|
|
|
|
2020-06-23 12:14:24 +00:00
|
|
|
constructor() {
|
2019-04-24 12:57:31 +00:00
|
|
|
uint _y1;
|
|
|
|
uint _y2;
|
|
|
|
uint _y3;
|
|
|
|
uint _y4;
|
|
|
|
uint _y5;
|
|
|
|
uint _y6;
|
|
|
|
uint _y7;
|
|
|
|
uint _y8;
|
|
|
|
uint _y9;
|
|
|
|
uint _y10;
|
|
|
|
uint _y11;
|
|
|
|
uint _y12;
|
|
|
|
uint _y13;
|
|
|
|
uint _y14;
|
|
|
|
|
|
|
|
|
|
|
|
function() internal invalid;
|
|
|
|
storedFn = invalid;
|
|
|
|
}
|
|
|
|
|
|
|
|
function run() public {
|
|
|
|
// this did not always cause revert in the past
|
|
|
|
storedFn();
|
|
|
|
}
|
|
|
|
|
|
|
|
function z() public {
|
|
|
|
x++;
|
|
|
|
}
|
|
|
|
}
|
2020-11-02 12:05:07 +00:00
|
|
|
// ====
|
2020-11-21 13:54:16 +00:00
|
|
|
// compileToEwasm: also
|
2021-03-12 23:02:36 +00:00
|
|
|
// compileViaYul: also
|
2019-04-24 12:57:31 +00:00
|
|
|
// ----
|
2020-10-13 11:28:39 +00:00
|
|
|
// run() -> FAILURE, hex"4e487b71", 0x51
|