Require target lra in gcc.dg/pr108095.c
[official-gcc.git] / gcc / testsuite / gcc.dg / pr105635.c
blobaa02f593bfafe36a25ba831aeaa8ac5ce9d00b12
1 /* PR c/105635 */
2 /* { dg-do compile } */
3 /* { dg-options "-Wall" } */
5 void foo (int, int[*]); /* { dg-message "previous declaration of 'foo' with type" } */
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" } */