aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/parse/local-class1.C
blob: 518dd7abd3ee477fc9b2e40e3615dd7551819730 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
 // Copyright (C) 2005 Free Software Foundation, Inc.
// Contributed by Nathan Sidwell 14 Feb 2005 <nathan@codesourcery.com>

// Origin: Jorn Wolfgang Rennecke <amylaar@gcc.gnu.org>
// Bug 19608: ICE on invalid


void f ()
{
  class c
    {
      friend void g () { } // { dg-error "local class" "" }
    };
}