diff options
Diffstat (limited to 'resources/sksl/errors/ContinueOutsideLoop.rts')
-rw-r--r-- | resources/sksl/errors/ContinueOutsideLoop.rts | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/resources/sksl/errors/ContinueOutsideLoop.rts b/resources/sksl/errors/ContinueOutsideLoop.rts new file mode 100644 index 0000000000..6e557fa9cc --- /dev/null +++ b/resources/sksl/errors/ContinueOutsideLoop.rts @@ -0,0 +1,15 @@ +void outside_for() { + for (int x=0; x<10; ++x) {} + continue; +} + +void inside_switch() { + switch (1) { + default: continue; + } +} + +/*%%* +continue statement must be inside a loop +continue statement must be inside a loop +*%%*/ |