Make sure the program doesn't have a dereference of a non-pointer type.

This commit is contained in:
Matt Pharr
2012-02-06 14:19:27 -08:00
parent a2b5ce0172
commit ee91fa1228
2 changed files with 16 additions and 1 deletions

View File

@@ -0,0 +1,6 @@
// Illegal to dereference non-pointer type "float"
float func(float a) {
*a = 0;
return 0;
}