Files
ispc/tests_errors/foreach-unique-3.ispc
Matt Pharr 3bc66136b2 Add foreach_unique iteration construct.
Idea via Ingo Wald / IVL compiler.
2012-06-20 10:04:24 -07:00

11 lines
167 B
Plaintext

// Error: "break" statement is illegal outside of for/while/do loops
void foo(int x) {
foreach_unique (u in x) {
if (u == 0)
break;
}
}