Sign in
gnu
/
gcc
/
f49e3d28be44179f07b8a06159139ce77096dda7
/
.
/
libgomp
/
testsuite
/
libgomp.c-c++-common
/
reduction-17.c
blob: 5e680d69cfa6337ebb86e98f7ea8241ee419a628 [
file
] [
log
] [
blame
]
/* PR middle-end/99928 */
/* { dg-do run } */
#define
N
64
int
main
()
{
int
r
=
0
,
i
;
#pragma
omp teams distribute simd reduction
(+:
r
)
for
(
i
=
0
;
i
<
N
;
i
++)
r
+=
i
;
if
(
r
!=
N
*
(
N
-
1
)
/
2
)
__builtin_abort
();
return
0
;
}