Debian Codegraph @

gcc/testsuite/g++.old-deja/g++.brendan/crash52.C

raw
1 // { dg-do assemble }
2 // { dg-options "-Wreturn-type" }
3 // { dg-skip-if "requires hosted libstdc++ for iostream" { ! hostedlib } }
4 // GROUPS passed old-abort
5 #include <iostream>
6
7 class A {
8 public:
9 friend A f(A &a);// { dg-message "old declaration" }
10 };
11
12 A &f(A &a) {// { dg-error "new declaration" }
13 std::cout << "Blah\n";
14 } // { dg-warning "no return statement" }