diff options
Diffstat (limited to 'contrib/netbsd-tests/usr.bin/xlint/lint1/d_cast_lhs.c')
-rw-r--r-- | contrib/netbsd-tests/usr.bin/xlint/lint1/d_cast_lhs.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/contrib/netbsd-tests/usr.bin/xlint/lint1/d_cast_lhs.c b/contrib/netbsd-tests/usr.bin/xlint/lint1/d_cast_lhs.c new file mode 100644 index 0000000..eb86569 --- /dev/null +++ b/contrib/netbsd-tests/usr.bin/xlint/lint1/d_cast_lhs.c @@ -0,0 +1,7 @@ +/* pointer casts are valid lhs lvalues */ +struct sockaddr { }; +void +foo() { + unsigned long p = 6; + ((struct sockaddr *)p) = 0; +} |