mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Check that functions exist in isoltest.
This commit is contained in:
committed by
Mathias Baumann
parent
f31332533f
commit
9aed40ab19
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user