solidity/test/libsolidity/semanticTests/functionCall/multiple_functions.sol
2022-05-19 20:23:28 +02:00

16 lines
388 B
Solidity

contract test {
function a() public returns(uint n) { return 0; }
function b() public returns(uint n) { return 1; }
function c() public returns(uint n) { return 2; }
function f() public returns(uint n) { return 3; }
}
// ====
// allowNonExistingFunctions: true
// compileToEwasm: also
// ----
// a() -> 0
// b() -> 1
// c() -> 2
// f() -> 3
// i_am_not_there() -> FAILURE