Home | History | Annotate | Line # | Download | only in lint1
msg_238.c revision 1.5
      1 /*	$NetBSD: msg_238.c,v 1.5 2022/06/16 21:24:41 rillig Exp $	*/
      2 # 3 "msg_238.c"
      3 
      4 /* Test for message: initialization of union is illegal in traditional C [238] */
      5 
      6 /* lint1-flags: -tw */
      7 
      8 struct {
      9 	int x;
     10 } s = {
     11 	3
     12 };
     13 
     14 union {
     15 	int x;
     16 /* expect+1: warning: initialization of union is illegal in traditional C [238] */
     17 } u = {
     18 	3
     19 };
     20