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

Subversion Repositories openrisc

[/] [openrisc/] [tags/] [gnu-src/] [gcc-4.5.1/] [gcc-4.5.1-or32-1.0rc1/] [gcc/] [testsuite/] [gcc.dg/] [inline-34.c] - Diff between revs 298 and 338

Only display areas with differences | Details | Blame | View Log

Rev 298 Rev 338
/* Diagnostics for bad references to static objects and functions from
/* Diagnostics for bad references to static objects and functions from
   inline definitions must take account of declarations after the
   inline definitions must take account of declarations after the
   definition which make it not an inline definition.  PR 39556.  */
   definition which make it not an inline definition.  PR 39556.  */
/* { dg-do compile } */
/* { dg-do compile } */
/* { dg-options "-std=c99 -pedantic-errors" } */
/* { dg-options "-std=c99 -pedantic-errors" } */
 
 
static int a1;
static int a1;
inline int f1 (void) { return a1; }
inline int f1 (void) { return a1; }
int f1 (void);
int f1 (void);
 
 
static int a2;
static int a2;
inline int f2 (void) { return a2; }
inline int f2 (void) { return a2; }
extern inline int f2 (void);
extern inline int f2 (void);
 
 
inline void f3 (void) { static int a3; }
inline void f3 (void) { static int a3; }
void f3 (void);
void f3 (void);
 
 
inline void f4 (void) { static int a4; }
inline void f4 (void) { static int a4; }
extern inline void f4 (void);
extern inline void f4 (void);
 
 

powered by: WebSVN 2.1.0

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