Debian Codegraph @

gcc/testsuite/g++.dg/lookup/hidden-class10.C

raw
1 // Copyright (C) 2007 Free Software Foundation
2 // Contributed by Ollie Wild <[email protected]>
3 // { dg-do compile }
4
5 // Verify that a friend class is hidden even if it overrides a builtin
6 // function name.
7
8 class A {
9 friend class abort;
10 abort *b; // { dg-error "type|expected" }
11 };