aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/cilk-plus/array_notation_tests/execute/multiple_insert_check.cc
blob: edd3a93052eab39ed3bc8b319975452c132d1eb5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
int A[256];
int func (int x) { 
  return x; 
}

/* There was an error that some call exprs were inserted twice.  This will
   check that issue.  */
int main (int argc, char **argv) 
{
  int x = 0;
  A[:] = 4;
  x = func (__sec_reduce_add(A[0:5:2])) + x;
  if (x != 20)
    return 1;
  else
    return 0;
}