OSDN Git Service
(root)
/
pf3gnuchains
/
gcc-fork.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Squash commit of EH in gimple
[pf3gnuchains/gcc-fork.git]
/
gcc
/
testsuite
/
g++.dg
/
tree-ssa
/
pr38632.C
1
// { 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
}