summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.brendan/crash52.C
blob: 6db818aa102278f2965a36bbc1db221d8b5faec1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
// { 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 statement" }