Issue error on attempt to derefernce void pointer types.

Issue #288.
This commit is contained in:
Matt Pharr
2012-06-18 19:51:19 -07:00
parent b2f6ed7209
commit bd52e86486
3 changed files with 30 additions and 5 deletions

View File

@@ -0,0 +1,5 @@
// Illegal to dereference void pointer type
int foo(void * uniform ptr) {
print("%", ptr[0]);
}

View File

@@ -0,0 +1,5 @@
// Illegal to dereference void pointer type
int foo(void * uniform ptr) {
print("%", *ptr);
}