Allow structs with no members.

Issue #289.
This commit is contained in:
Matt Pharr
2012-06-21 16:07:31 -07:00
parent 50eb4bf53a
commit 5a2c8342eb
3 changed files with 43 additions and 14 deletions

13
tests/empty-struct.ispc Normal file
View File

@@ -0,0 +1,13 @@
export uniform int width() { return programCount; }
struct Foo { };
export void f_f(uniform float RET[], uniform float aFOO[]) {
uniform Foo f;
RET[programIndex] = sizeof(f);
}
export void result(uniform float RET[]) {
RET[programIndex] = 1;
}