aboutsummaryrefslogtreecommitdiff
path: root/tests/conformance/8-runtime/div_by_zero_no_trap.zc
blob: 156bb1811447bc15905129f26b630721869d1fda (plain) (blame)
1
2
3
4
5
6
// expect: ok/
// spec 8.4 and 3.4.3
include rt;
void pn(int x) { rt.put_n(x); rt.put_c(10); }
fn main() { int z = 0; int x = 7 / z; rt.put_s("ok"); rt.put_c(10); return 0; }
// zc0: skip