xref: /netbsd-src/tests/usr.bin/xlint/lint1/msg_125.c (revision 82d56013d7b633d116a93943de88e08335357a7c)
1 /*	$NetBSD: msg_125.c,v 1.3 2021/01/31 11:12:07 rillig Exp $	*/
2 # 3 "msg_125.c"
3 
4 // Test for message: ANSI C forbids ordered comparisons of pointers to functions [125]
5 
6 /* lint1-extra-flags: -s */
7 
8 typedef void (*action)(void);
9 
10 int
11 less(action a, action b)
12 {
13 	return a < b;		/* expect: 125 */
14 }
15