5
tests_errors/void-ptr-deref-1.ispc
Normal file
5
tests_errors/void-ptr-deref-1.ispc
Normal file
@@ -0,0 +1,5 @@
|
||||
// Illegal to dereference void pointer type
|
||||
|
||||
int foo(void * uniform ptr) {
|
||||
print("%", ptr[0]);
|
||||
}
|
||||
5
tests_errors/void-ptr-deref.ispc
Normal file
5
tests_errors/void-ptr-deref.ispc
Normal file
@@ -0,0 +1,5 @@
|
||||
// Illegal to dereference void pointer type
|
||||
|
||||
int foo(void * uniform ptr) {
|
||||
print("%", *ptr);
|
||||
}
|
||||
Reference in New Issue
Block a user