aboutsummaryrefslogtreecommitdiffstats
path: root/test/libsolidity/syntaxTests/literalOperations/division_by_zero.sol
blob: b52b4c5120becc57f58abe73685fcfb5e9bf5920 (plain) (blame)
1
2
3
4
5
contract C {
    uint constant a = 1 / 0;
}
// ----
// TypeError: (35-40): Operator / not compatible with types int_const 1 and int_const 0