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
PR middle-end/85602 - -Wsizeof-pointer-memaccess for strncat with size of source
[official-gcc.git]
/
gcc
/
testsuite
/
c-c++-common
/
gomp
/
pr61486-1.c
blob
dbd621f0dba777f8233b40bea93a2813aa737015
1
/* PR middle-end/61486 */
2
/* { dg-do compile } */
3
/* { dg-options "-fopenmp" } */
4
5
int
6
foo
(
int
*
a
)
7
{
8
int
i
,
j
=
0
;
9
#pragma omp target teams distribute simd linear(i) map(a[:10])
10
for
(
i
=
0
;
i
<
10
;
i
++)
11
a
[
i
] =
j
;
12
return
i
;
13
}