gcc/testsuite/g++.dg/parse/local-class1.C
raw| 1 | // Copyright (C) 2005 Free Software Foundation, Inc. |
| 2 | // Contributed by Nathan Sidwell 14 Feb 2005 <[email protected]> |
| 3 | |
| 4 | // Origin: Jorn Wolfgang Rennecke <[email protected]> |
| 5 | // Bug 19608: ICE on invalid |
| 6 | |
| 7 | |
| 8 | void f () |
| 9 | { |
| 10 | class c |
| 11 | { |
| 12 | friend void g () { } // { dg-error "local class" } |
| 13 | }; |
| 14 | } |