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.c-torture/] [execute/] [pr24135.c] - Diff between revs 297 and 338

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

Rev 297 Rev 338
#ifndef NO_TRAMPOLINES
#ifndef NO_TRAMPOLINES
extern void abort (void);
extern void abort (void);
 
 
int x(int a, int b)
int x(int a, int b)
{
{
  __label__ xlab;
  __label__ xlab;
  __label__ xlab2;
  __label__ xlab2;
 
 
  void y(int b)
  void y(int b)
    {
    {
       switch (b)
       switch (b)
        {
        {
          case 1: goto xlab;
          case 1: goto xlab;
          case 2: goto xlab;
          case 2: goto xlab;
        }
        }
    }
    }
 
 
  a = a + 2;
  a = a + 2;
  y (b);
  y (b);
 
 
 xlab:
 xlab:
  return a;
  return a;
 
 
 xlab2:
 xlab2:
  a++;
  a++;
  return a;
  return a;
 
 
}
}
 
 
int main ()
int main ()
{
{
  int i, j;
  int i, j;
 
 
  for (j = 1; j <= 2; ++j)
  for (j = 1; j <= 2; ++j)
    for (i = 1; i <= 2; ++i)
    for (i = 1; i <= 2; ++i)
      {
      {
        int a = x (j, i);
        int a = x (j, i);
        if (a != 2 + j)
        if (a != 2 + j)
          abort ();
          abort ();
      }
      }
 
 
  return 0;
  return 0;
}
}
#else
#else
int main() { return 0; }
int main() { return 0; }
#endif
#endif
 
 

powered by: WebSVN 2.1.0

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