Move assert so that an error is issued for "break" outside of loops.

This commit is contained in:
Matt Pharr
2012-02-06 14:28:07 -08:00
parent a59fd7eeb3
commit 420d373d89
2 changed files with 7 additions and 1 deletions

5
tests_errors/break.ispc Normal file
View File

@@ -0,0 +1,5 @@
// "break" statement is illegal outside of
void foo() {
break;
}