OpenCores
URL https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk

Subversion Repositories openrisc_2011-10-31

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [objc/] [execute/] [exceptions/] [pr31281.m] - Rev 307

Compare with Previous | Blame | View Log

/* From PR31281.  */
extern void abort (void);
int __attribute__((noinline))
f(unsigned int i)
{
  int j, k;
  @try { } @catch(id) { return 13; }
  for (j=0; j<i; j++)
    for (k=0; k<i; k++)
      {
        @try {
          if (i)
            break;
        } @catch(id) { }
        return 9;
      }
  return 0;
}
 
 
int
main()
{
  if (f(1))
    abort ();
  return 0 ;
}
 

Compare with Previous | Blame | View Log

powered by: WebSVN 2.1.0

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