A an array of tests

This commit is contained in:
2017-05-12 12:33:51 -04:00
parent 2921430e45
commit 1eb64a13e1
5 changed files with 63 additions and 6 deletions

14
tests_ispcpp/error_6.ispc Normal file
View File

@@ -0,0 +1,14 @@
number pow(number b, int a) {
number out = b;
for (int i = 1; i<a; i++) {
out *= b;
}
return out;
}
export void square(uniform int N, uniform number$-1 b[], uniform number$-1 out[]) {
foreach (i = 0 ... N) {
out[i] = pow(b[i], 2);
}
}