1  /* PR c/105635 */
       2  /* { dg-do compile } */
       3  /* { dg-options "-Wall" } */
       4  
       5  void foo (int, int[*]);	/* { dg-message "previous declaration of 'foo' with type" } */
       6  
       7  foo (int x, int y)	/* { dg-warning "return type defaults to 'int'" } */
       8  {			/* { dg-warning "conflicting types for 'foo'" "" { target *-*-* } .-1 } */
       9  			/* { dg-message "declared here" "" { target *-*-* } .-2 } */
      10    return (x >= 0) != (y < 0);	/* { dg-warning "'return' with a value, in function returning void" } */
      11  }