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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [testsuite/] [gcc.dg/] [20050607-1.c] - Diff between revs 154 and 816

Go to most recent revision | Only display areas with differences | Details | Blame | View Log

Rev 154 Rev 816
/* { dg-do compile } */
/* { dg-do compile } */
/* { dg-options "-Wpadded" }
/* { dg-options "-Wpadded" }
/* The struct internally constructed for the nested function should
/* The struct internally constructed for the nested function should
   not result in a warning from -Wpadded. */
   not result in a warning from -Wpadded. */
extern int baz(int (*) (int));
extern int baz(int (*) (int));
int foo(void)
int foo(void)
{
{
  int k = 3;
  int k = 3;
  int bar(int x) {
  int bar(int x) {
    return x + k;
    return x + k;
  }
  }
  return baz(bar);
  return baz(bar);
}
}
 
 

powered by: WebSVN 2.1.0

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