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
2013-06-17 Balaji V. Iyer <balaji.v.iyer@intel.com>
[official-gcc.git]
/
gcc
/
testsuite
/
c-c++-common
/
cilk-plus
/
AN
/
sec_reduce_ind_same_value.c
blob
34c6f12846de256491cd743b3ce0cab376664eef
1
/* { dg-do run } */
2
/* { dg-options "-fcilkplus" } */
3
4
int
A
[
256
];
5
6
int
main
() {
7
A
[:] =
2
;
8
int
max_index
=
0
,
min_index
=
0
;
9
10
max_index
=
__sec_reduce_max_ind
(
A
[:]);
11
12
if
(
max_index
!=
255
)
13
return
1
;
14
15
min_index
=
__sec_reduce_min_ind
(
A
[:]);
16
if
(
min_index
!=
255
)
17
return
2
;
18
19
return
0
;
20
}
21