1 /* $NetBSD: msg_125.c,v 1.5 2023/07/07 19:45:22 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 -X 351 */ 7 8 typedef void (*action)(void); 9 10 int 11 less(action a, action b) 12 { 13 /* expect+1: warning: ANSI C forbids ordered comparisons of pointers to functions [125] */ 14 return a < b; 15 } 16