| 1 |
// { dg-do compile } |
| 2 |
|
| 3 |
class basic_ostream { |
| 4 |
public: |
| 5 |
basic_ostream &operator<<(basic_ostream &p1(basic_ostream &)) { |
| 6 |
return p1(*this); |
| 7 |
} |
| 8 |
} a; |
| 9 |
void fn1() __attribute__((__noreturn__)); |
| 10 |
basic_ostream &fn2(basic_ostream &) { fn1(); } |
| 11 |
void fn3() { a << fn2; } |