Home | History | Annotate | Line # | Download | only in lint1
msg_115.c revision 1.2
      1 /*	$NetBSD: msg_115.c,v 1.2 2021/01/08 21:25:03 rillig Exp $	*/
      2 # 3 "msg_115.c"
      3 
      4 // Test for message: %soperand of '%s' must be modifiable lvalue [115]
      5 
      6 void
      7 example(const int *const_ptr)
      8 {
      9 
     10 	*const_ptr = 3;
     11 	*const_ptr += 1;
     12 	*const_ptr -= 4;
     13 	*const_ptr *= 1;
     14 	*const_ptr /= 5;
     15 	*const_ptr %= 9;
     16 }
     17