gcc/testsuite/g++.old-deja/g++.brendan/arm3.C
raw| 1 | // { dg-do assemble } |
| 2 | // GROUPS passed initialization |
| 3 | // ARM $11.4: A function first declared in a friend decl is equivalent |
| 4 | // to an extern decl, so the below is illegal. |
| 5 | |
| 6 | class X { |
| 7 | friend g(); // { dg-error "" } previous declaration |
| 8 | }; |
| 9 | static g() { return 1; }// { dg-error "" } previously declared |