Debian Codegraph @

gcc/testsuite/g++.old-deja/g++.jason/redecl1.C

raw
1 // { dg-do assemble }
2 class A
3 {
4 public:
5 A (const A& ccref);
6 friend A const re (const A& v1); // { dg-message "old declaration" }
7 };
8
9 A // const
10 re (const A& ref) // { dg-error "new declaration" }
11 {
12 return A (ref);
13 }