Sign in
gnu
/
gcc
/
4212a6a3e44f870412d9025eeb323fd4f50a61da
/
.
/
libgomp
/
testsuite
/
libgomp.c
/
static-chunk-size-one.c
blob: 9ed7b83625a51b5a3e4969ee0add9350442ed721 [
file
] [
log
] [
blame
]
extern
void
abort
();
int
bar
()
{
int
a
=
0
,
i
;
#pragma
omp parallel
for
num_threads
(
3
)
reduction
(+:
a
)
schedule
(
static
,
1
)
for
(
i
=
0
;
i
<
10
;
i
++)
a
+=
i
;
return
a
;
}
int
main
(
void
)
{
int
res
;
res
=
bar
();
if
(
res
!=
45
)
abort
();
return
0
;
}