aboutsummaryrefslogtreecommitdiff
path: root/tests/icon/reject/unsupported_step.zc
diff options
context:
space:
mode:
Diffstat (limited to 'tests/icon/reject/unsupported_step.zc')
-rw-r--r--tests/icon/reject/unsupported_step.zc10
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/icon/reject/unsupported_step.zc b/tests/icon/reject/unsupported_step.zc
new file mode 100644
index 0000000..944c5b6
--- /dev/null
+++ b/tests/icon/reject/unsupported_step.zc
@@ -0,0 +1,10 @@
+include rt;
+include run;
+include icon;
+fn main() {
+ let q = run.tokens("for (int i = 0; i < 2; i++) {}");
+ let frame = icon.begin(q);
+ icon.step(frame); rt.put_n(icon.state(frame)); rt.put_c(' '); rt.put_n(icon.error()); rt.put_c(10);
+ icon.close(d*frame);
+ return 0;
+}