Type convert NULL to other pointer types for function call arguments.
Fixes issue #198.
This commit is contained in:
14
tests/ptr-null-func-arg.ispc
Normal file
14
tests/ptr-null-func-arg.ispc
Normal file
@@ -0,0 +1,14 @@
|
||||
|
||||
export uniform int width() { return programCount; }
|
||||
|
||||
bool bar(float * x) {
|
||||
return (x != 0);
|
||||
}
|
||||
|
||||
export void f_f(uniform float RET[], uniform float aFOO[]) {
|
||||
RET[programIndex] = bar(NULL);
|
||||
}
|
||||
|
||||
export void result(uniform float RET[]) {
|
||||
RET[programIndex] = 0;
|
||||
}
|
||||
Reference in New Issue
Block a user