xref: /netbsd-src/tests/usr.bin/xlint/lint1/msg_144.c (revision 7d62b00eb9ad855ffcd7da46b41e23feb5476fac)
1 /*	$NetBSD: msg_144.c,v 1.5 2022/04/01 23:16:32 rillig Exp $	*/
2 # 3 "msg_144.c"
3 
4 // Test for message: cannot take size/alignment of function type '%s' [144]
5 
6 unsigned long
7 example(void)
8 {
9 	/* expect+1: error: cannot take size/alignment of function type 'function(void) returning unsigned long' [144] */
10 	return sizeof(example);
11 }
12