blob: 172a441049057c6901513e656efe068195799488 [file] [log] [blame]
// { dg-do assemble }
class A
{
public:
A (const A& ccref);
friend A const re (const A& v1); // { dg-message "old declaration" }
};
A // const
re (const A& ref) // { dg-error "new declaration" }
{
return A (ref);
}