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