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