summaryrefslogtreecommitdiff
path: root/test/c
diff options
context:
space:
mode:
Diffstat (limited to 'test/c')
-rw-r--r--test/c/foreach_none.expect1
-rw-r--r--test/c/foreach_none.sail11
2 files changed, 12 insertions, 0 deletions
diff --git a/test/c/foreach_none.expect b/test/c/foreach_none.expect
new file mode 100644
index 00000000..9766475a
--- /dev/null
+++ b/test/c/foreach_none.expect
@@ -0,0 +1 @@
+ok
diff --git a/test/c/foreach_none.sail b/test/c/foreach_none.sail
new file mode 100644
index 00000000..bc960b85
--- /dev/null
+++ b/test/c/foreach_none.sail
@@ -0,0 +1,11 @@
+
+val "print" : string -> unit
+
+val main : unit -> unit
+
+function main() = {
+ foreach (i from 0 to -1 by 1 in inc) {
+ print("unreachable\n");
+ };
+ print("ok\n")
+} \ No newline at end of file