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
Update concepts branch to revision 131834
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
gomp
/
pr27337-2.C
blob
d1ae4a139f22e7cca7ae260427c6b9c1a3cfc6a2
1
// PR middle-end/27337
2
// { dg-do compile }
3
4
struct S
5
{
6
S ();
7
~S ();
8
int i;
9
};
10
11
S
12
foo ()
13
{
14
int i;
15
S ret;
16
17
#pragma omp parallel for firstprivate (ret) lastprivate (ret)
18
for (i = 0; i < 2; i++)
19
ret.i += i;
20
21
return ret;
22
}