1  // Copyright (C) 2005 Free Software Foundation, Inc.
2 // Contributed by Nathan Sidwell 14 Feb 2005 <nathan@codesourcery.com>
3 
4 // Origin: Jorn Wolfgang Rennecke <amylaar@gcc.gnu.org>
5 // Bug 19608: ICE on invalid
6 
7 
f()8 void f ()
9 {
10   class c
11     {
12       friend void g () { } // { dg-error "local class" }
13     };
14 }
15