polkadot_call_flags.sol 512 B

12345678910
  1. // RUN: --target polkadot --emit cfg
  2. contract CallFlags {
  3. function call_with_flags( address _address, uint32 _flags) public returns (bytes ret) {
  4. (bool ok, ret) = _address.call{flags: _flags}(hex"deadbeef");
  5. // CHECK: block0: # entry
  6. // CHECK: ty:uint32 %_flags = (arg #1)
  7. // CHECK: %success.temp.4 = external call::regular address:(arg #0) payload:(alloc bytes uint32 4 hex"deadbeef") value:uint128 0 gas:uint64 0 accounts: seeds: contract|function:_ flags:(arg #1)
  8. }
  9. }