diff options
Diffstat (limited to 'gcc/testsuite/gcc.dg/20030906-2.c')
-rw-r--r-- | gcc/testsuite/gcc.dg/20030906-2.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gcc/testsuite/gcc.dg/20030906-2.c b/gcc/testsuite/gcc.dg/20030906-2.c index 8f3d378..1191133 100644 --- a/gcc/testsuite/gcc.dg/20030906-2.c +++ b/gcc/testsuite/gcc.dg/20030906-2.c @@ -2,7 +2,7 @@ Copyright (C) 2003 Free Software Foundation Inc. */ /* { dg-do compile } */ -/* { dg-options "-O -finline-functions -Wextra" } */ +/* { dg-options "-O -finline-functions -Wreturn-type" } */ extern int i; extern int foo (void); @@ -10,9 +10,9 @@ extern int bar (void); int foo (void) { - if( i ) return; + if( i ) return; /* { dg-warning "'return' with no value, in function returning non-void" } */ else return 1; -} /* { dg-warning "may return with or without a value" } */ +} int bar (void) { |