summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.mike/p418.C
blob: 412884071ff44a112e4a4915b8070a71dffe1b31 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// { dg-do assemble  }
// prms-id: 418

class Base {
public:
	int foo;
};

class Derived : public Base {
public:
	int bar;
};

void func(Base&);		// { dg-error "" } referenced by error below

void func2(const Derived& d) {
	func(d);		// { dg-error "" } should be error because of const
}