Home | History | Annotate | Line # | Download | only in lint1
msg_110.c revision 1.3
      1  1.3  rillig /*	$NetBSD: msg_110.c,v 1.3 2021/07/25 10:26:46 rillig Exp $	*/
      2  1.1  rillig # 3 "msg_110.c"
      3  1.1  rillig 
      4  1.1  rillig // Test for message: pointer to function is not allowed here [110]
      5  1.1  rillig 
      6  1.3  rillig /* ARGSUSED */
      7  1.3  rillig void
      8  1.3  rillig call_take(int (*ptr)(int))
      9  1.3  rillig {
     10  1.3  rillig 	/* expect+1: error: pointer to function is not allowed here [110] */
     11  1.3  rillig 	ptr++;
     12  1.3  rillig 
     13  1.3  rillig 	/* expect+1: error: pointer to function is not allowed here [110] */
     14  1.3  rillig 	ptr + 1;
     15  1.3  rillig }
     16