OpenCores
URL https://opencores.org/ocsvn/scarts/scarts/trunk

Subversion Repositories scarts

[/] [scarts/] [trunk/] [toolchain/] [scarts-gcc/] [gcc-4.1.1/] [gcc/] [testsuite/] [gcc.dg/] [20030906-2.c] - Blame information for rev 12

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 12 jlechner
/* Bug 9862 -- Spurious warnings with -finline-functions.
2
   Copyright (C) 2003 Free Software Foundation Inc.  */
3
 
4
/* { dg-do compile } */
5
/* { dg-options "-O -finline-functions -Wextra" } */
6
 
7
extern int i;
8
extern int foo (void);
9
extern int bar (void);
10
 
11
int foo (void)
12
{
13
  if( i ) return;
14
  else    return 1;
15
}               /* { dg-warning "may return with or without a value" } */
16
 
17
int bar (void)
18
{
19
  if( i ) return 0;
20
  else    return 1;
21
}

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.