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
* Makefile.in (C_COMMON_OBJS): Depend on c-cilkplus.o.
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
cilk-plus
/
for3.C
blob
28dbdee4339e995e5686598a26fb3c1a0598afbd
1
/* { dg-do compile } */
2
/* { dg-options "-O3 -fcilkplus" } */
3
4
// Test storage classes in the initialization of a <#pragma simd> for
5
// loop.
6
7
int *a, *b;
8
9
void foo()
10
{
11
#pragma simd
12
for (int tt=5; tt < 10; ++tt)
13
{
14
a[tt] = b[tt];
15
if (tt == 8)
16
throw 1; /* { dg-error "throw expressions are not allowed" } */
17
}
18
}