solang 0.2.1

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

}