Sign in
gnu
/
gcc
/
1f16a020acbea0af26209478990b83b1a1ba3a2b
/
.
/
gcc
/
testsuite
/
g++.dg
/
gomp
/
lastprivate-1.C
blob: ce25e1a6b900b49496223145219ea5a6d9f3872c [
file
] [
log
] [
blame
]
// PR c++/90950
// { dg-do compile }
template
<
typename
T
>
T
foo
(
void
)
{
T y
=
0
;
T
&
x
=
y
;
#pragma
omp parallel
for
lastprivate
(
x
)
for
(
int
i
=
0
;
i
<
8
;
++
i
)
x
=
i
;
return
x
;
}
int
a
=
foo
<int>
();