blob: 62b9e21f5dd22cb3593a34beb45af0daed589a6b [file] [log] [blame]
// PR c++/51326
struct A
{
virtual int& foo(); // { dg-message "overridden" }
};
struct B : A
{
B& foo(); // { dg-error "conflicting return type" }
};