summaryrefslogtreecommitdiff
path: root/tests/usr.bin/xlint/lint1/msg_038.c
blob: 978144bea3601ec39cce560793dbe549d3572ea0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
/*	$NetBSD: msg_038.c,v 1.4 2023/03/28 14:44:34 rillig Exp $	*/
# 3 "msg_038.c"

// Test for message: function illegal in structure or union [38]

/* lint1-extra-flags: -X 351 */

typedef void (function)(void);

struct {
	/* expect+1: error: function illegal in structure or union [38] */
	function fn;
} s;