blob: e8c51e8be2f633794a0ac5068c1fcffc0e46f5d5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
// 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
|