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
S/390: Deprecate g5 and g6 CPU levels
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
gomp
/
pr67514.C
blob
a631b8bfedbfade0199e3fb273fb8ec9dafc7d07
1
// PR c++/67514
2
// { dg-do compile }
3
// { dg-options "-fopenmp" }
4
5
template <class T>
6
void
7
foo (T x, T y)
8
{
9
#pragma omp parallel
10
#pragma omp for simd
11
for (T i = x; i < y; ++i)
12
;
13
#pragma omp parallel
14
#pragma omp for simd collapse (2)
15
for (T i = x; i < y; ++i)
16
for (T j = x; j < y; j++)
17
;
18
}
19
20
void
21
bar (int *x, int *y)
22
{
23
foo (x, y);
24
}
25
26
void
27
baz (int x, int y)
28
{
29
foo (x, y);
30
}