Sign in
gnu
/
gcc
/
1f16a020acbea0af26209478990b83b1a1ba3a2b
/
.
/
gcc
/
testsuite
/
g++.dg
/
gomp
/
for-20.C
blob: 7b57b16b85f9f102bd88b89000c655d1878f5291 [
file
] [
log
] [
blame
]
// PR c++/60146
// { dg-do compile }
// { dg-options -fopenmp }
int
foo
()
{
return
0
;
}
template
<
typename
T
>
void
bar
()
{
#pragma
omp parallel
for
for
(
T i
=
foo
();
i
<
8
;
++
i
)
{}
}
void
baz
()
{
bar
<int>
();
}