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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.dg/] [inline-34.c] - Blame information for rev 724

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 689 jeremybenn
/* Diagnostics for bad references to static objects and functions from
2
   inline definitions must take account of declarations after the
3
   definition which make it not an inline definition.  PR 39556.  */
4
/* { dg-do compile } */
5
/* { dg-options "-std=c99 -pedantic-errors" } */
6
 
7
static int a1;
8
inline int f1 (void) { return a1; }
9
int f1 (void);
10
 
11
static int a2;
12
inline int f2 (void) { return a2; }
13
extern inline int f2 (void);
14
 
15
inline void f3 (void) { static int a3; }
16
void f3 (void);
17
 
18
inline void f4 (void) { static int a4; }
19
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.