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

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [g++.dg/] [tree-ssa/] [pr38632.C] - Blame information for rev 414

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

Line No. Rev Author Line
1 301 jeremybenn
// { dg-do compile }
2
// { dg-require-effective-target pthread }
3
// { dg-options "-O -ftree-parallelize-loops=2" }
4
 
5
void foo();
6
 
7
void bar(int n, char *p)
8
{
9
  try
10
  {
11
    foo();
12
    ++n;
13
    foo();
14
    for (int i = 0; i < n-1; ++i)
15
      p[i] = 0;
16
  }
17
  catch (...)
18
  {
19
    for (int i = 0; i < n; ++i)
20
      p[i] = 0;
21
  }
22
}

powered by: WebSVN 2.1.0

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