diff options
Diffstat (limited to 'resources/sksl/errors/BreakOutsideLoop.rts')
-rw-r--r-- | resources/sksl/errors/BreakOutsideLoop.rts | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/resources/sksl/errors/BreakOutsideLoop.rts b/resources/sksl/errors/BreakOutsideLoop.rts new file mode 100644 index 0000000000..8dbbb92ebf --- /dev/null +++ b/resources/sksl/errors/BreakOutsideLoop.rts @@ -0,0 +1,8 @@ +void outside_loop() { + for (int x=0; x<10; ++x) {} + if (true) break; +} + +/*%%* +break statement must be inside a loop or switch +*%%*/ |