xref: /netbsd-src/tests/usr.bin/xlint/lint1/msg_185.c (revision 82d56013d7b633d116a93943de88e08335357a7c)
1 /*	$NetBSD: msg_185.c,v 1.5 2021/03/18 21:26:56 rillig Exp $	*/
2 # 3 "msg_185.c"
3 
4 // Test for message: cannot initialize '%s' from '%s' [185]
5 
6 typedef struct any {
7 	const void *value;
8 } any;
9 
10 void use(const void *);
11 
12 void
13 initialization_with_redundant_braces(any arg)
14 {
15 	any local = { 3.0 };	/* expect: 185 */
16 	use(&arg);
17 }
18