Initial commit.
This commit is contained in:
22
tests/c-for-loop-nested-continues.ispc
Normal file
22
tests/c-for-loop-nested-continues.ispc
Normal file
@@ -0,0 +1,22 @@
|
||||
|
||||
export uniform int width() { return programCount; }
|
||||
|
||||
|
||||
|
||||
export void f_f(uniform float RET[], uniform float aFOO[]) {
|
||||
float a = aFOO[programIndex];
|
||||
int i, j;
|
||||
float r = 0;
|
||||
for (i = 0; i < a+1; ++i) {
|
||||
if (i == 1)
|
||||
ccontinue;
|
||||
for (j = 0; j < a; ++j) {
|
||||
if (a == 2)
|
||||
ccontinue;
|
||||
}
|
||||
++r;
|
||||
}
|
||||
RET[programIndex] = r;
|
||||
}
|
||||
|
||||
export void result(uniform float RET[]) { RET[programIndex] = 1+programIndex; }
|
||||
Reference in New Issue
Block a user