2 // { dg-options "-pedantic-errors" }
9 class Derived : public Base {
14 void func(Base&); // { dg-error "" }
16 void func2(const Derived& d) {
17 func(d); // { dg-error "" } this is bad
28 const int*const a = &b;
29 *a = 10; // { dg-error "" } it's const
30 foo (*a); // { dg-error "" } it's const