diff options
Diffstat (limited to 'tests/conformance/8-runtime/halt_stops.zc')
| -rw-r--r-- | tests/conformance/8-runtime/halt_stops.zc | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/conformance/8-runtime/halt_stops.zc b/tests/conformance/8-runtime/halt_stops.zc new file mode 100644 index 0000000..28ae5e4 --- /dev/null +++ b/tests/conformance/8-runtime/halt_stops.zc @@ -0,0 +1,5 @@ +// expect: 1/ +// spec 8.3 +include rt; +void pn(int x) { rt.put_n(x); rt.put_c(10); } +fn main() { pn(1); rt.halt(); pn(2); return 0; } |
