* gcc.dg/stack-check-5.c: Skip with -fstack-protector.
[official-gcc.git] / gcc / testsuite / gcc.dg / c90-return-1.c
blob96a3876a6f2695702457a2fe2065af5cc4195dd0
1 /* Test for constraints on return statements. */
2 /* Origin: Joseph Myers <jsm28@cam.ac.uk> */
3 /* { dg-do compile } */
4 /* { dg-options "-std=iso9899:1990 -pedantic-errors" } */
6 int
7 foo (void)
9 return;
12 void
13 bar (void)
15 return 1; /* { dg-bogus "warning" "warning in place of error" } */
16 /* { dg-error "with a value" "return constraint violation" { target *-*-* } .-1 } */