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
* gcc.dg/stack-check-5.c: Skip with -fstack-protector.
[official-gcc.git]
/
gcc
/
testsuite
/
gcc.dg
/
pr54782.c
blob
161b043c61b9395cb38915e07c89f17ad36bd782
1
/* { dg-do compile } */
2
/* { dg-require-effective-target pthread } */
3
/* { dg-options "-O -ffast-math -ftree-parallelize-loops=2 -g" } */
4
5
struct
S
6
{
7
int
n
;
8
float
*
a
;
9
};
10
11
int
12
foo
(
struct
S
*
s
)
13
{
14
float
sum
=
0
;
15
int
i
;
16
for
(
i
=
0
;
i
<
s
->
n
;
i
++)
17
sum
+=
s
->
a
[
i
];
18
return
sum
;
19
}