msg_125.c revision 1.4
1/* $NetBSD: msg_125.c,v 1.4 2022/06/16 16:58:36 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 8typedef void (*action)(void); 9 10int 11less(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