2003-12-26 Guilhem Lavaux <guilhem@kaffe.org>
[official-gcc.git] / gcc / testsuite / gcc.dg / 20030906-1.c
blob57d80f044c357555cdff5858e5cadb674c953c26
1 /* Bug 9862 -- Spurious warnings with -finline-functions.
2 Copyright (C) 2003 Free Software Foundation Inc. */
4 /* { dg-do compile } */
5 /* { dg-options "-O -finline-functions -Wextra" } */
7 extern int i;
8 extern int foo (void);
9 extern int bar (void);
11 int foo (void)
13 if( i ) return 0;
14 else return 1;
15 } /* { dg-bogus "may return with or without a value" } */
17 int bar (void)
19 if( i ) return;
20 else return 1;
21 } /* { dg-warning "may return with or without a value" } */