msg_125.c revision 1.6
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 8typedef void (*action)(void); 9 10int 11less(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