aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/20030906-1.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/testsuite/gcc.dg/20030906-1.c')
-rw-r--r--gcc/testsuite/gcc.dg/20030906-1.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/gcc/testsuite/gcc.dg/20030906-1.c b/gcc/testsuite/gcc.dg/20030906-1.c
index 57d80f0..c416f55 100644
--- a/gcc/testsuite/gcc.dg/20030906-1.c
+++ b/gcc/testsuite/gcc.dg/20030906-1.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);
@@ -12,10 +12,10 @@ int foo (void)
{
if( i ) return 0;
else return 1;
-} /* { dg-bogus "may return with or without a value" } */
+}
int bar (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" } */
+}