aboutsummaryrefslogtreecommitdiffstats
path: root/test/libsolidity/syntaxTests/inlineAssembly/function_call_invalid_argument_count.sol
blob: ac1f541ebe0eecfda6d20959391ddffbff575af5 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
contract C {
  function f() public pure {
    assembly {
      function f(a) {}

      f()
      f(1)
      f(1, 2)
    }
  }
}
// ----
// TypeError: (87-88): Expected 1 arguments but got 0.
// SyntaxError: (87-90): Top-level expressions are not supposed to return values (this expression returns -1 values). Use ``pop()`` or assign them.
// TypeError: (108-109): Expected 1 arguments but got 2.
// SyntaxError: (108-115): Top-level expressions are not supposed to return values (this expression returns 1 value). Use ``pop()`` or assign them.