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
PR rtl-optimization/77919
[official-gcc.git]
/
libgomp
/
testsuite
/
libgomp.c
/
pr49898-1.c
blob
175426d4000d51cb250cf5d83abb0ed18dba2135
1
/* PR middle-end/49898 */
2
/* { dg-do run } */
3
4
extern
void
abort
(
void
);
5
6
int
7
main
()
8
{
9
int
i
,
j
,
sum
=
0
;
10
#pragma omp parallel
11
{
12
#pragma omp for reduction(+:sum)
13
for
(
i
=
0
;
i
<
10
;
i
++)
14
{
15
#pragma omp parallel
16
{
17
#pragma omp for reduction(+:sum)
18
for
(
j
=
0
;
j
<
10
;
j
++)
19
sum
+=
j
;
20
}
21
}
22
}
23
if
(
sum
!=
450
)
24
abort
();
25
return
0
;
26
}