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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [objc/] [execute/] [exceptions/] [pr31281.m] - Rev 702

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.