blob: 95c6a08322e76268b477db2bdd13bbd3e13d293f [file] [log] [blame]
// { dg-do assemble }
// { dg-options "-Wreturn-type" }
// GROUPS passed old-abort
#include <iostream>
class A {
public:
friend A f(A &a);// { dg-error "" } ambiguates.*
};
A &f(A &a) {// { dg-error "" } new decl.*
std::cout << "Blah\n";
} // { dg-warning "" } no return