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
libstdc++: remove JSON comment.
[official-gcc.git]
/
libgomp
/
testsuite
/
libgomp.c
/
task-reduction-4.c
blob
7ca1d02fa19e7388a712fbb098edc207139c4e55
1
/* PR middle-end/100471 */
2
3
extern
void
abort
(
void
);
4
5
int
c
;
6
7
int
8
main
()
9
{
10
#pragma omp parallel
11
#pragma omp single
12
{
13
int
r
=
0
,
i
;
14
#pragma omp taskloop reduction(+:r)
15
for
(
i
=
0
;
i
<
c
;
i
++)
16
r
++;
17
if
(
r
!=
0
)
18
abort
();
19
}
20
return
0
;
21
}