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
C99 testsuite readiness: Compile more tests with -std=gnu89
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
gomp
/
loop-7.C
blob
9466c1c9db35ce20b82b09e9748d9cebdebe76e6
1
// PR c++/102854
2
// { dg-do compile }
3
4
template <typename T>
5
void
6
foo (T N, T M)
7
{
8
#pragma omp parallel for collapse(2)
9
for (T i = 0; i < N; ++i)
10
for (T k = i; k < M; ++k)
11
;
12
#pragma omp parallel for collapse(2)
13
for (T i = 0; i < N; ++i)
14
for (T k = i; k < 2 * i; ++k)
15
;
16
}
17
18
void
19
bar ()
20
{
21
foo (5, 10);
22
}