1// { dg-do assemble  }
2void f ()
3{
4  struct A {
5    friend void g ();
6  };
7}
8void h () {
9  g ();				// { dg-error "" } no g in scope
10}
11