const_fail.sol 176 B

12345678910
  1. // RUN: --target polkadot --emit cfg
  2. contract c {
  3. function divide_zero() public pure returns (uint32) {
  4. uint32 x = 2;
  5. x = x / 0;
  6. // FAIL: divide by zero
  7. return x;
  8. }
  9. }