Fix hash of WIDEN_*_EXPR
[official-gcc.git] / gcc / testsuite / g++.dg / inherit / covariant19.C
blob22c2b0eb6f629f48e9852d0910a2a2cec01de02a
1 // PR c++/46220
2 // According to the letter of the standard this is invalid,
3 // but that seems like a bug.
5 class Baz;
6 class Foo {
7 public:
8     virtual const Baz* getBaz() = 0;
9 };
10 class Bar : public Foo {
11 public:
12     Baz* getBaz();