Mercurial > hg > CbC > CbC_gcc
annotate gcc/testsuite/c-c++-common/cilk-plus/AN/sec_reduce_ind_same_value.c @ 111:04ced10e8804
gcc 7
author | kono |
---|---|
date | Fri, 27 Oct 2017 22:46:09 +0900 |
parents | |
children |
rev | line source |
---|---|
111 | 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 |