Home | History | Annotate | Line # | Download | only in lint1
      1 /*	$NetBSD: msg_112.c,v 1.4 2023/03/28 14:44:34 rillig Exp $	*/
      2 # 3 "msg_112.c"
      3 
      4 // Test for message: cannot take address of bit-field [112]
      5 
      6 /* lint1-extra-flags: -X 351 */
      7 
      8 struct {
      9 	int bit_field:1;
     10 } s;
     11 
     12 /* expect+1: error: cannot take address of bit-field [112] */
     13 void *ptr = &s.bit_field;
     14