]> git.ipfire.org Git - thirdparty/gcc.git/blob - gcc/testsuite/c-c++-common/cilk-plus/AN/rank_mismatch.c
[Patch AArch64] Fixup floating point division with -march=armv8-a+nosimd
[thirdparty/gcc.git] / gcc / testsuite / c-c++-common / cilk-plus / AN / rank_mismatch.c
1 /* { dg-do compile } */
2 /* { dg-options "-fcilkplus -w" } */
3
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. */
6
7 int main (void)
8 {
9 int x = 0;
10 int array[10][10], array2[10];
11
12 array[:][:] = array[:]; /* { dg-error "rank mismatch between" } */
13 /* { dg-error "invalid conversion" "" { target c++ } .-1 } */
14
15 x = array2[:]; /* { dg-error "cannot be scalar when" } */
16
17 return 0;
18 }