]> git.ipfire.org Git - thirdparty/gcc.git/blame - gcc/testsuite/gcc.dg/20030906-1.c
replace ISL with isl
[thirdparty/gcc.git] / gcc / testsuite / gcc.dg / 20030906-1.c
CommitLineData
03845b47
SB
1/* Bug 9862 -- Spurious warnings with -finline-functions.
2 Copyright (C) 2003 Free Software Foundation Inc. */
3
4/* { dg-do compile } */
ffd5f276 5/* { dg-options "-O -finline-functions -Wreturn-type" } */
03845b47
SB
6
7extern int i;
8extern int foo (void);
9extern int bar (void);
10
11int foo (void)
12{
13 if( i ) return 0;
14 else return 1;
ffd5f276 15}
03845b47
SB
16
17int bar (void)
18{
ffd5f276 19 if( i ) return; /* { dg-warning "'return' with no value, in function returning non-void" } */
03845b47 20 else return 1;
ffd5f276 21}