Home | History | Annotate | Line # | Download | only in lint1
decl_struct_member.c revision 1.4
      1 /*	$NetBSD: decl_struct_member.c,v 1.4 2021/07/10 22:34:02 rillig Exp $	*/
      2 # 3 "decl_struct_member.c"
      3 
      4 struct multi_attributes {
      5 	__attribute__((deprecated))
      6 	/* expect+1: error: syntax error '__attribute__' [249] */
      7 	__attribute__((deprecated))
      8 	__attribute__((deprecated))
      9 	int deprecated;
     10 };
     11 
     12 /*
     13  * Before cgram.y 1.228 from 2021-06-19, lint ran into an assertion failure:
     14  *
     15  * "is_struct_or_union(dcs->d_type->t_tspec)" at cgram.y:846
     16  */
     17 struct {
     18 	char;			/* expect: syntax error 'unnamed member' */
     19 };
     20 
     21 /*
     22  * Before decl.c 1.188 from 2021-06-20, lint ran into a segmentation fault.
     23  */
     24 struct {
     25 	char a(_)0		/* expect: syntax error '0' */
     26 }				/* expect: ';' after last */
     27 /*
     28  * FIXME: adding a semicolon here triggers another assertion:
     29  *
     30  * assertion "t == NOTSPEC" failed in end_type at decl.c:774
     31  */
     32 /* expect+1: cannot recover from previous errors */
     33