Add some additional tests

This commit is contained in:
Matt Pharr
2011-12-06 14:26:52 -08:00
parent 04df63d955
commit bd70182369
8 changed files with 128 additions and 0 deletions

13
tests/ptr-int-null.ispc Normal file
View File

@@ -0,0 +1,13 @@
export uniform int width() { return programCount; }
export void f_f(uniform float RET[], uniform float aFOO[]) {
uniform int a = 1;
uniform int * uniform b = 0;
RET[programIndex] = (b == NULL && b == 0 && 0 == b) ? 1 : 0;
}
export void result(uniform float RET[]) {
RET[programIndex] = 1;
}