diff options
Diffstat (limited to 'tests/conformance/8-runtime/errors_do_not_run.zc')
| -rw-r--r-- | tests/conformance/8-runtime/errors_do_not_run.zc | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/conformance/8-runtime/errors_do_not_run.zc b/tests/conformance/8-runtime/errors_do_not_run.zc new file mode 100644 index 0000000..1a789a4 --- /dev/null +++ b/tests/conformance/8-runtime/errors_do_not_run.zc @@ -0,0 +1,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 |
