aboutsummaryrefslogtreecommitdiff
path: root/bootstrap/test2.cff
diff options
context:
space:
mode:
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;