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
PR middle-end/77674
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
gomp
/
pr35099.C
blob
6c793a3f8c2f072180f545c97ffcea980af55703
1
// PR middle-end/35099
2
// { dg-do compile }
3
// { dg-options "-O2 -fopenmp" }
4
5
struct A
6
{
7
~A () throw ();
8
void foo ();
9
};
10
11
struct B
12
{
13
B () { A ().foo (); }
14
};
15
16
void
17
bar ()
18
{
19
#pragma omp parallel
20
{
21
#pragma omp single
22
B ();
23
#pragma omp for
24
for (int i = 0; i < 2; ++i)
25
B ();
26
}
27
}
28
29
void
30
baz ()
31
{
32
#pragma omp parallel
33
{
34
#pragma omp single
35
B ();
36
#pragma omp single
37
B ();
38
}
39
}