Mercurial > hg > CbC > CbC_gcc
comparison gcc/testsuite/g++.dg/conversion/qual2.C @ 145:1830386684a0
gcc-9.2.0
author | anatofuz |
---|---|
date | Thu, 13 Feb 2020 11:34:05 +0900 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
131:84e7813d76e9 | 145:1830386684a0 |
---|---|
1 // PR c++/88128 - DR 330: Qual convs and pointers to arrays of pointers. | |
2 | |
3 // Make sure we don't accept different bounds. | |
4 | |
5 int *a[4]; | |
6 const int *const(*ap1)[5] = &a; // { dg-error "cannot convert" } | |
7 | |
8 int *(*b)[3]; | |
9 const int *const (*bp1)[3] = &b; // { dg-error "cannot convert" } | |
10 const int *const (*bp2)[4] = &b; // { dg-error "cannot convert" } | |
11 int *(*bp3)[4] = &b; // { dg-error "cannot convert" } | |
12 | |
13 int *c[2][3]; | |
14 int const *const (*cp1)[4] = c; // { dg-error "cannot convert" } |