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
Let tree_single_nonzero_warnv_p use range information
[official-gcc.git]
/
gcc
/
testsuite
/
gcc.dg
/
gomp
/
pr60534.c
blob
f8a6bdc1d81a0d04c1d7d5bb0f023b9499ddf721
1
/* PR middle-end/60534 */
2
/* { dg-do compile } */
3
/* { dg-options "-fopenmp -O -fno-tree-loop-optimize" } */
4
5
extern
int
d
[];
6
7
int
8
foo
(
int
a
)
9
{
10
int
c
=
0
;
11
int
l
;
12
#pragma omp simd reduction(+: c)
13
for
(
l
=
0
;
l
<
a
; ++
l
)
14
c
+=
d
[
l
];
15
return
c
;
16
}