Add some new tests

One tricky pointer one currently hits an assertion (fix forthcoming).
This commit is contained in:
Matt Pharr
2011-11-30 09:43:25 -08:00
parent 92c46a2fc7
commit 1703f2717c
6 changed files with 123 additions and 0 deletions

16
tests/nested-statics.ispc Normal file
View File

@@ -0,0 +1,16 @@
export uniform int width() { return programCount; }
export void f_f(uniform float RET[], uniform float aFOO[]) {
static int a = 1234;
{
static int a = 0;
++a;
RET[programIndex] = a;
}
}
export void result(uniform float RET[]) {
RET[programIndex] = 1;
}