2019-04-24 12:57:31 +00:00
|
|
|
contract InvalidTest {
|
|
|
|
|
|
|
|
function() internal storedFn;
|
|
|
|
|
|
|
|
bool flag;
|
|
|
|
|
2020-06-23 12:14:24 +00:00
|
|
|
constructor() {
|
2019-04-24 12:57:31 +00:00
|
|
|
function() internal invalid;
|
|
|
|
storedFn = invalid;
|
|
|
|
}
|
|
|
|
function f() public returns (uint) {
|
|
|
|
if (flag) return 2;
|
|
|
|
flag = true;
|
|
|
|
storedFn();
|
|
|
|
}
|
|
|
|
}
|
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
|
|
|
// f() -> FAILURE, hex"4e487b71", 0x51
|
|
|
|
// f() -> FAILURE, hex"4e487b71", 0x51
|