xref: /netbsd-src/tests/usr.bin/xlint/lint1/msg_038.c (revision b2baa50111d645353fa30b4deab0f79d93650c8c)
1 /*	$NetBSD: msg_038.c,v 1.4 2023/03/28 14:44:34 rillig Exp $	*/
2 # 3 "msg_038.c"
3 
4 // Test for message: function illegal in structure or union [38]
5 
6 /* lint1-extra-flags: -X 351 */
7 
8 typedef void (function)(void);
9 
10 struct {
11 	/* expect+1: error: function illegal in structure or union [38] */
12 	function fn;
13 } s;
14