Add foreach_unique iteration construct.
Idea via Ingo Wald / IVL compiler.
This commit is contained in:
8
tests_errors/foreach-unique-2.ispc
Normal file
8
tests_errors/foreach-unique-2.ispc
Normal file
@@ -0,0 +1,8 @@
|
||||
// Can't assign to type "const uniform int32"
|
||||
|
||||
void foo(int x) {
|
||||
foreach_unique (u in x)
|
||||
++u;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user