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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-stable/] [gcc-4.5.1/] [gcc/] [testsuite/] [objc/] [execute/] [exceptions/] [pr31281.m] - Blame information for rev 859

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 307 jeremybenn
/* From PR31281.  */
2
extern void abort (void);
3
int __attribute__((noinline))
4
f(unsigned int i)
5
{
6
  int j, k;
7
  @try { } @catch(id) { return 13; }
8
  for (j=0; j<i; j++)
9
    for (k=0; k<i; k++)
10
      {
11
        @try {
12
          if (i)
13
            break;
14
        } @catch(id) { }
15
        return 9;
16
      }
17
  return 0;
18
}
19
 
20
 
21
int
22
main()
23
{
24
  if (f(1))
25
    abort ();
26
  return 0 ;
27
}

powered by: WebSVN 2.1.0

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