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

13
tests_ispcpp/error_7.ispc Normal file
View File

@@ -0,0 +1,13 @@
floating foo(floating a, floating b) {
floating d = a / b;
if (d < 0.)
return 0.;
return d;
}
export void bar(uniform integer * uniform X, uniform int N) {
foreach (i = 0 ... N-1) {
X[i] = foo(X[i], X[i+1]);
}
}