diff options
author | Thomas Schwinge <thomas@codesourcery.com> | 2013-06-06 14:42:08 +0200 |
---|---|---|
committer | Thomas Schwinge <thomas@codesourcery.com> | 2013-06-06 14:42:08 +0200 |
commit | 04b6e0b2481dea9739b3dd29a42c2e2bc5baa333 (patch) | |
tree | cafc8a33f5f2308f899755a45eae03a15f44f543 /gcc/testsuite/c-c++-common/cilk-plus/AN/dimensionless-arrays.c | |
parent | a488009075e657f7df544e4ced8cbd7af2b58403 (diff) | |
parent | 3a930d3fc68785662f5f3f4af02474cb21a62056 (diff) | |
download | gcc-04b6e0b2481dea9739b3dd29a42c2e2bc5baa333.tar.gz |
Merge commit 'refs/top-bases/baseline' into baseline
Diffstat (limited to 'gcc/testsuite/c-c++-common/cilk-plus/AN/dimensionless-arrays.c')
-rw-r--r-- | gcc/testsuite/c-c++-common/cilk-plus/AN/dimensionless-arrays.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/gcc/testsuite/c-c++-common/cilk-plus/AN/dimensionless-arrays.c b/gcc/testsuite/c-c++-common/cilk-plus/AN/dimensionless-arrays.c new file mode 100644 index 00000000000..69aaa523727 --- /dev/null +++ b/gcc/testsuite/c-c++-common/cilk-plus/AN/dimensionless-arrays.c @@ -0,0 +1,10 @@ +/* { dg-options "-fcilkplus" } */ + +extern int a[]; +extern int *b; + +void foo() +{ + a[:] = 5; // { dg-error "start-index and length fields necessary for using array notations in dimensionless arrays" } + b[:] = 5; // { dg-error "start-index and length fields necessary for using array notations in pointers" } +} |