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
/
gcc.dg
/
cilk-plus
/
for2.c
blob
285f35a5079a94341d808efaabf7a6037ea81651
1
/* { dg-do compile } */
2
/* { dg-options "-O3 -fcilkplus" } */
3
4
int
*
a
, *
b
;
5
6
void
foo
()
7
{
8
#pragma simd
9
for
(
const int
ci
=
0
;
ci
<
1000
; ++
ci
)
/* { dg-error "increment of read-only var\|invalid controlling\|invalid increment\|assignment of read" } */
10
a
[
ci
] =
b
[
ci
];
11
}