blob: c9b5ca9f663fa3d0cfb3d27e2b190bb8a4a643bb [file] [log] [blame]
// Copyright (C) 2007 Free Software Foundation
// Contributed by Ollie Wild <aaw@google.com>
// { dg-do compile }
// Verify that a friend class is hidden even if it overrides a builtin
// function name.
class A {
friend class abort;
abort *b; // { dg-error "type|expected" }
};