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