xref: /netbsd-src/tests/usr.bin/xlint/lint1/msg_038.c (revision 7d62b00eb9ad855ffcd7da46b41e23feb5476fac)
1 /*	$NetBSD: msg_038.c,v 1.3 2021/08/27 20:16:50 rillig Exp $	*/
2 # 3 "msg_038.c"
3 
4 // Test for message: function illegal in structure or union [38]
5 
6 typedef void (function)(void);
7 
8 struct {
9 	/* expect+1: error: function illegal in structure or union [38] */
10 	function fn;
11 } s;
12