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
fortran: Factor the evaluation of MINLOC/MAXLOC's BACK argument
[official-gcc.git]
/
libgomp
/
testsuite
/
libgomp.c
/
static-chunk-size-one.c
blob
9ed7b83625a51b5a3e4969ee0add9350442ed721
1
extern
void
abort
();
2
3
int
4
bar
()
5
{
6
int
a
=
0
,
i
;
7
8
#pragma omp parallel for num_threads (3) reduction (+:a) schedule(static, 1)
9
for
(
i
=
0
;
i
<
10
;
i
++)
10
a
+=
i
;
11
12
return
a
;
13
}
14
15
int
16
main
(
void
)
17
{
18
int
res
;
19
res
=
bar
();
20
if
(
res
!=
45
)
21
abort
();
22
return
0
;
23
}