Home | History | Annotate | Line # | Download | only in lint1
msg_001.c revision 1.7
      1 /*	$NetBSD: msg_001.c,v 1.7 2022/06/11 11:52:13 rillig Exp $	*/
      2 # 3 "msg_001.c"
      3 
      4 // Test for message: old style declaration; add 'int' [1]
      5 
      6 /* expect+1: warning: old style declaration; add 'int' [1] */
      7 old_style = 1;
      8 
      9 int new_style = 1;
     10 
     11 /* expect+2: error: old style declaration; add 'int' [1] */
     12 /* expect+1: warning: static variable 'static_old_style' unused [226] */
     13 static static_old_style = 1;
     14 
     15 /* expect+1: warning: static variable 'static_new_style' unused [226] */
     16 static int static_new_style = 1;
     17 
     18 /* expect+2: error: old style declaration; add 'int' [1] */
     19 extern_implicit_int(void)
     20 {
     21 }
     22 
     23 /* expect+4: error: old style declaration; add 'int' [1] */
     24 /* expect+2: warning: static function 'static_implicit_int' unused [236] */
     25 static
     26 static_implicit_int(void)
     27 {
     28 }
     29