xref: /freebsd/contrib/netbsd-tests/usr.bin/xlint/lint1/d_cast_init2.c (revision d8a0fe102c0cfdfcd5b818f850eff09d8536c9bc)
1 /* cast initialization as the rhs of a - operand */
2 struct sockaddr_dl {
3 	char sdl_data[2];
4 };
5 
6 int             npdl_datasize = sizeof(struct sockaddr_dl) -
7 ((int) ((unsigned long)&((struct sockaddr_dl *) 0)->sdl_data[0]));
8