2 // { dg-options "-pedantic-errors" }
4 const int ci=10, *pc = &ci, *const cpc = pc, **ppc;
5 int i, *p, *const cp = &i;
9 ci = 1; // { dg-error "" } bad
10 ci++; // { dg-error "" } bad
11 *pc = 2; // { dg-error "" } bad
12 cp = &ci; // { dg-error "" } bad
13 cpc++; // { dg-error "" } bad
14 p = pc; // { dg-error "" } bad