Check that functions exist in isoltest.

This commit is contained in:
chriseth
2020-02-13 13:22:53 +01:00
committed by Mathias Baumann
parent f31332533f
commit 9aed40ab19
9 changed files with 32 additions and 3 deletions
@@ -2,5 +2,6 @@ contract test {
}
// ====
// compileViaYul: also
// allowNonExistingFunctions: true
// ----
// i_am_not_there() -> FAILURE
@@ -13,6 +13,7 @@ contract test {
uint256 super_secret_data;
}
// ====
// allowNonExistingFunctions: true
// compileViaYul: also
// ----
// data() -> 8
@@ -4,6 +4,8 @@ contract test {
function c() public returns(uint n) { return 2; }
function f() public returns(uint n) { return 3; }
}
// ====
// allowNonExistingFunctions: true
// ----
// a() -> 0
// b() -> 1
@@ -14,6 +14,7 @@ contract C {
}
}
// ====
// allowNonExistingFunctions: true
// EVMVersion: >homestead
// ----
// _() -> FAILURE
@@ -4,6 +4,7 @@ contract C {
}
}
// ====
// allowNonExistingFunctions: true
// compileViaYul: also
// ----
// f(uint256,uint256,uint256,uint256,uint256): 1, 1, 1, 1, 1
@@ -1,6 +1,7 @@
contract C {
}
// ====
// allowNonExistingFunctions: true
// compileViaYul: true
// ----
// f() -> FAILURE