blob: 6e868c7ec0d3d79f2f89991526e0a5a38eae0469 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
// Build don't link:
// prms-id: 418
class Base {
public:
int foo;
};
class Derived : public Base {
public:
int bar;
};
void func(Base&); // ERROR - referenced by error below
void func2(const Derived& d) {
func(d); // ERROR - should be error because of const
}
|