aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/g++.dg/cilk-plus/for3.C
blob: 28dbdee4339e995e5686598a26fb3c1a0598afbd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
/* { dg-do compile } */
/* { dg-options "-O3 -fcilkplus" } */

// Test storage classes in the initialization of a <#pragma simd> for
// loop.

int *a, *b;

void foo()
{
#pragma simd
  for (int tt=5; tt < 10; ++tt)
    {
      a[tt] = b[tt];
      if (tt == 8)
	throw 1; /* { dg-error "throw expressions are not allowed" } */
    }
}