Home | History | Annotate | Line # | Download | only in lint1
      1 /*	$NetBSD: msg_185.c,v 1.7 2023/03/28 14:44:35 rillig Exp $	*/
      2 # 3 "msg_185.c"
      3 
      4 // Test for message: cannot initialize '%s' from '%s' [185]
      5 
      6 /* lint1-extra-flags: -X 351 */
      7 
      8 typedef struct any {
      9 	const void *value;
     10 } any;
     11 
     12 void use(const void *);
     13 
     14 void
     15 initialization_with_redundant_braces(any arg)
     16 {
     17 	/* expect+1: error: cannot initialize 'pointer to const void' from 'double' [185] */
     18 	any local = { 3.0 };
     19 	use(&arg);
     20 }
     21