xref: /netbsd-src/tests/usr.bin/xlint/lint1/msg_125.c (revision ccd9df534e375a4366c5b55f23782053c7a98d82)
1 /*	$NetBSD: msg_125.c,v 1.6 2023/08/26 10:43:53 rillig Exp $	*/
2 # 3 "msg_125.c"
3 
4 // Test for message: pointers to functions can only be compared for equality [125]
5 
6 /* lint1-extra-flags: -s -X 351 */
7 
8 typedef void (*action)(void);
9 
10 int
11 less(action a, action b)
12 {
13 	/* expect+1: warning: pointers to functions can only be compared for equality [125] */
14 	return a < b;
15 }
16