aboutsummaryrefslogtreecommitdiff
path: root/bootstrap/test2.cff
diff options
context:
space:
mode:
authorlemon <lsof@mailbox.org>2022-08-08 08:48:21 +0200
committerlemon <lsof@mailbox.org>2022-08-08 08:50:18 +0200
commit215c18ebc86b116827d3af19ca0779316e1a0e15 (patch)
tree472683c87148646856b73c0af09e64768aa550af /bootstrap/test2.cff
parent8e94bb58ca91b26c0916210a179157b1280489be (diff)
break & continue
Diffstat (limited to 'bootstrap/test2.cff')
-rw-r--r--bootstrap/test2.cff10
1 files changed, 10 insertions, 0 deletions
diff --git a/bootstrap/test2.cff b/bootstrap/test2.cff
index b94a74e..fdb30cb 100644
--- a/bootstrap/test2.cff
+++ b/bootstrap/test2.cff
@@ -46,6 +46,16 @@ extern fn main() void {
*f += 1.0f;
}
+ #:outer for let i = 0; i++ < 10; {
+ printf("%d\n", i);
+ while #t {
+ if i < 2 {
+ continue #:outer;
+ }
+ break #:outer;
+ }
+ }
+
let x = Option<int>:Some 3;
let x = Option<f32>:None;