Move assert so that an error is issued for "break" outside of loops.
This commit is contained in:
5
tests_errors/break.ispc
Normal file
5
tests_errors/break.ispc
Normal file
@@ -0,0 +1,5 @@
|
||||
// "break" statement is illegal outside of
|
||||
|
||||
void foo() {
|
||||
break;
|
||||
}
|
||||
Reference in New Issue
Block a user