repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
* auto-profile.c (afdo_annotate_cfg): Use update_max_bb_count.
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
gomp
/
pr27325.C
blob
05bc481d70fa016f52e272f46b27b91941fa6f18
1
// PR middle-end/27325
2
// { dg-do compile }
3
// { dg-options "-O2 -fopenmp" }
4
5
struct A { A(); ~A(); int i; };
6
7
int
8
foo ()
9
{
10
A a;
11
#pragma omp parallel private (a)
12
for (int i = 0; i < 5; ++i)
13
a.i++;
14
return 0;
15
}
16
17
int
18
bar ()
19
{
20
A a;
21
#pragma omp for private (a)
22
for (int i = 0; i < 5; ++i)
23
a.i++;
24
return 0;
25
}