aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/c-c++-common/cilk-plus/AN/sec_implicit2.c
blob: 0aef0c29aca5699f4b44f5fda850ac8afcc12ab3 (plain)
1
2
3
4
5
6
7
8
9
10
11
/* { dg-do compile } */
/* { dg-options "-fcilkplus" } */

int main (void)
{
  int argc = 2;
  int array[10][10], array2[10];
  __asm volatile ("" : "+r" (argc));
  array[:][:] = __sec_implicit_index(argc) + array[:][:]; /* { dg-error "__sec_implicit_index parameter" } */
  return 0;
}