xref: /netbsd-src/tests/usr.bin/xlint/lint1/msg_144.c (revision d16b7486a53dcb8072b60ec6fcb4373a2d0c27b7)
1 /*	$NetBSD: msg_144.c,v 1.6 2023/07/07 19:45:22 rillig Exp $	*/
2 # 3 "msg_144.c"
3 
4 // Test for message: cannot take size/alignment of function type '%s' [144]
5 
6 /* lint1-extra-flags: -X 351 */
7 
8 unsigned long
9 example(void)
10 {
11 	/* expect+1: error: cannot take size/alignment of function type 'function(void) returning unsigned long' [144] */
12 	return sizeof(example);
13 }
14