blob: e8c51e8be2f633794a0ac5068c1fcffc0e46f5d5 [file] [log] [blame]
// Build don't link:
// GROUPS passed old-abort
// Special g++ Options: -Wreturn-type
#include <iostream>
class A {
public:
friend A f(A &a);// ERROR - ambiguates.*
};
A &f(A &a) {// ERROR - new decl.*
std::cout << "Blah\n";
} // ERROR - non-void function