xref: /freebsd/contrib/netbsd-tests/usr.bin/xlint/lint1/d_cast_lhs.c (revision b2d2a78ad80ec68d4a17f5aef97d21686cb1e29b)
1 /* pointer casts are valid lhs lvalues */
2 struct sockaddr { };
3 void
4 foo() {
5     unsigned long p = 6;
6     ((struct sockaddr *)p) = 0;
7 }
8