Home | History | Annotate | Line # | Download | only in lint1
msg_108.c revision 1.2
      1  1.2  rillig /*	$NetBSD: msg_108.c,v 1.2 2021/01/09 17:02:19 rillig Exp $	*/
      2  1.1  rillig # 3 "msg_108.c"
      3  1.1  rillig 
      4  1.1  rillig // Test for message: operand of '%s' has incompatible type (%s != %s) [108]
      5  1.1  rillig 
      6  1.1  rillig TODO: "Add example code that triggers the above message."
      7  1.2  rillig TODO: "Add example code that almost triggers the above message.";
      8  1.2  rillig 
      9  1.2  rillig struct s {
     10  1.2  rillig 	int member;
     11  1.2  rillig };
     12  1.2  rillig 
     13  1.2  rillig void
     14  1.2  rillig example(void)
     15  1.2  rillig {
     16  1.2  rillig 	struct s s;
     17  1.2  rillig 
     18  1.2  rillig 	// FIXME: msg_108.c(14): lint error: common/tyname.c, 190: tspec_name(0)
     19  1.2  rillig 	// basic_type_name (t=NOTSPEC)
     20  1.2  rillig 	// warn_incompatible_types (op=COMPL, lt=STRUCT, rt=NOTSPEC)
     21  1.2  rillig 	//s = ~s;
     22  1.2  rillig }
     23