]>
git.ipfire.org Git - thirdparty/gcc.git/blob - gcc/testsuite/c-c++-common/cilk-plus/AN/rank_mismatch.c
1 /* { dg-do compile } */
2 /* { dg-options "-fcilkplus -w" } */
4 /* We use -w because in the first error, there will be a warning of setting an
5 integer to a pointer. Just ignore it to expose the rank mismatch error. */
10 int array
[10][10], array2
[10];
12 array
[:][:] = array
[:]; /* { dg-error "rank mismatch between" } */
13 /* { dg-error "invalid conversion" "" { target c++ } .-1 } */
15 x
= array2
[:]; /* { dg-error "cannot be scalar when" } */