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
2014-02-05 Balaji V. Iyer <balaji.v.iyer@intel.com>
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
gomp
/
pr48632.C
blob
afa8b18933668e845aaff5eca26320df76ccc188
1
// PR c++/48632
2
// { dg-do compile }
3
// { dg-options "-fopenmp" }
4
5
template<typename T>
6
void
7
foo (T *x, T *y, unsigned z)
8
{
9
#pragma omp parallel for
10
for (T *p = x; p < y; p += z)
11
;
12
#pragma omp parallel for
13
for (T *p = y; p > x; p -= z)
14
;
15
}
16
17
int
18
main ()
19
{
20
char buf[10];
21
foo (&buf[0], &buf[9], 1);
22
}