Partially addresses issue #280. (We should support them properly, but at least now we don't silently generate incorrect code.)
12 lines
207 B
Plaintext
12 lines
207 B
Plaintext
// Nested "foreach" statements are currently illegal
|
|
|
|
void func();
|
|
|
|
void foo(uniform int a, uniform int b) {
|
|
foreach (i = 0 ... a) {
|
|
foreach (j = 0 ... b) {
|
|
func();
|
|
}
|
|
}
|
|
}
|