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
Merge from mainline
[official-gcc.git]
/
gcc
/
testsuite
/
gcc.dg
/
gomp
/
sharing-3.c
blob
36f72e3abb94cc7be324f2de863b5930b847caea
1
/* { dg-do compile } */
2
3
#define N 50
4
#define CHUNKSIZE 5
5
6
main
()
7
{
8
int
i
,
chunk
;
9
float
c
[
N
];
10
11
chunk
=
CHUNKSIZE
;
12
#pragma omp parallel for shared (c, chunk) schedule (dynamic, chunk)
13
for
(
i
=
0
;
i
<
N
;
i
++)
14
c
[
i
] =
i
;
15
16
return
0
;
17
}