summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.jason/scoping12.C
blob: a7834163bcf69ae7d5c9f440bbb3c433bb24f5fb (plain)
1
2
3
4
5
6
7
8
9
10
// { dg-do assemble  }
void f ()
{
  struct A {
    friend void g ();		// { dg-error "without prior declaration" }
  };
}
void h () {
  g ();				// { dg-error "" } no g in scope
}