aboutsummaryrefslogtreecommitdiff
path: root/tests/conformance/8-runtime/errors_do_not_run.zc
blob: 1a789a443afe46cd25ba1752f7636c53cf320122 (plain) (blame)
1
2
3
4
5
6
// expect error: zc: 1 error
// spec 8.1.2 and 8.2: a unit with errors does not run
include rt;
void pn(int x) { rt.put_n(x); rt.put_c(10); }
fn main() { pn(1); int x = ; return 0; }
// zc0: skip