[TMP] Repros for crashes in semantic tests

This commit is contained in:
Kamil Śliwak 2023-09-05 17:29:38 +02:00
parent acad00f461
commit 206c06f0b3
5 changed files with 56 additions and 0 deletions

View File

@ -0,0 +1,12 @@
pragma experimental solidity;
contract C {
fallback() external {
let x: bool;
if (x) {}
else {}
}
}
// ----
// (): ->

View File

@ -0,0 +1,9 @@
pragma experimental solidity;
contract C {
fallback() external {
integer.abs();
}
}
// ----
// () ->

View File

@ -0,0 +1,13 @@
pragma experimental solidity;
type X = word;
class T: TC {}
instantiation X: TC {
function f() -> bool {
return 1;
}
}
// ----
// () ->

View File

@ -0,0 +1,13 @@
pragma experimental solidity;
type X = word;
class T: TC {}
instantiation X: TC {
function f() -> bool {
return "";
}
}
// ----
// () ->

View File

@ -0,0 +1,9 @@
pragma experimental solidity;
contract C {
fallback() external {
revert;
}
}
// ----
// () ->