blob: 574d7caa5fb6f7bb23d168aee305c8c7c3ff702d [file] [log] [blame]
// { dg-do compile }
void
fn ()
{
struct S {
friend void bar () { } // { dg-error "17:cannot define friend function 'bar' in a local class definition" }
};
}