Make sure the program doesn't have a dereference of a non-pointer type.
This commit is contained in:
6
tests_errors/deref-4.ispc
Normal file
6
tests_errors/deref-4.ispc
Normal file
@@ -0,0 +1,6 @@
|
||||
// Illegal to dereference non-pointer type "float"
|
||||
|
||||
float func(float a) {
|
||||
*a = 0;
|
||||
return 0;
|
||||
}
|
||||
Reference in New Issue
Block a user