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-26.c] - Diff between revs 298 and 338

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

Rev 298 Rev 338
/* PR c/35017 */
/* PR c/35017 */
/* { dg-do compile } */
/* { dg-do compile } */
/* { dg-options "-std=gnu99" } */
/* { dg-options "-std=gnu99" } */
 
 
static int a = 6;
static int a = 6;
static const int b = 6;
static const int b = 6;
int c = 6;
int c = 6;
 
 
inline int
inline int
fn1 (void)
fn1 (void)
{
{
  return a;             /* { dg-warning "used in inline" } */
  return a;             /* { dg-warning "used in inline" } */
}
}
 
 
inline int
inline int
fn2 (void)
fn2 (void)
{
{
  return b;             /* { dg-warning "used in inline" } */
  return b;             /* { dg-warning "used in inline" } */
}
}
 
 
inline int
inline int
fn3 (void)
fn3 (void)
{
{
  return c;
  return c;
}
}
 
 
inline int
inline int
fn4 (void)
fn4 (void)
{
{
  static int d = 6;     /* { dg-warning "declared in inline" } */
  static int d = 6;     /* { dg-warning "declared in inline" } */
  return d;
  return d;
}
}
 
 
inline int
inline int
fn5 (void)
fn5 (void)
{
{
  static const int e = 6;
  static const int e = 6;
  return e;
  return e;
}
}
 
 
inline int
inline int
fn6 (void)
fn6 (void)
{
{
  int f = 6;
  int f = 6;
  return f;
  return f;
}
}
 
 
inline int
inline int
fn7 (int i)
fn7 (int i)
{
{
  static const char g[10] = "abcdefghij";
  static const char g[10] = "abcdefghij";
  return g[i];
  return g[i];
}
}
 
 
extern inline int
extern inline int
fn8 (void)
fn8 (void)
{
{
  return a;
  return a;
}
}
 
 
extern inline int
extern inline int
fn9 (void)
fn9 (void)
{
{
  return b;
  return b;
}
}
 
 
extern inline int
extern inline int
fn10 (void)
fn10 (void)
{
{
  return c;
  return c;
}
}
 
 
extern inline int
extern inline int
fn11 (void)
fn11 (void)
{
{
  static int d = 6;
  static int d = 6;
  return d;
  return d;
}
}
 
 
extern inline int
extern inline int
fn12 (void)
fn12 (void)
{
{
  static const int e = 6;
  static const int e = 6;
  return e;
  return e;
}
}
 
 
extern inline int
extern inline int
fn13 (void)
fn13 (void)
{
{
  int f = 6;
  int f = 6;
  return f;
  return f;
}
}
 
 
extern inline int
extern inline int
fn14 (int i)
fn14 (int i)
{
{
  static const char g[10] = "abcdefghij";
  static const char g[10] = "abcdefghij";
  return g[i];
  return g[i];
}
}
 
 
static inline int
static inline int
fn15 (void)
fn15 (void)
{
{
  return a;
  return a;
}
}
 
 
static inline int
static inline int
fn16 (void)
fn16 (void)
{
{
  return b;
  return b;
}
}
 
 
static inline int
static inline int
fn17 (void)
fn17 (void)
{
{
  return c;
  return c;
}
}
 
 
static inline int
static inline int
fn18 (void)
fn18 (void)
{
{
  static int d = 6;
  static int d = 6;
  return d;
  return d;
}
}
 
 
static inline int
static inline int
fn19 (void)
fn19 (void)
{
{
  static const int e = 6;
  static const int e = 6;
  return e;
  return e;
}
}
 
 
static inline int
static inline int
fn20 (void)
fn20 (void)
{
{
  int f = 6;
  int f = 6;
  return f;
  return f;
}
}
 
 
static inline int
static inline int
fn21 (int i)
fn21 (int i)
{
{
  static const char g[10] = "abcdefghij";
  static const char g[10] = "abcdefghij";
  return g[i];
  return g[i];
}
}
 
 

powered by: WebSVN 2.1.0

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