gcc/testsuite/g++.dg/lookup/hidden-class11.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 is hidden by a non-builtin |
| 6 | // function name. |
| 7 | |
| 8 | namespace M { |
| 9 | void F (void); |
| 10 | class F; |
| 11 | } |
| 12 | |
| 13 | namespace N { |
| 14 | void F(void); |
| 15 | class A { |
| 16 | friend class F; |
| 17 | }; |
| 18 | } |
| 19 | |
| 20 | using namespace M; |
| 21 | using namespace N; |
| 22 | |
| 23 | class F *b; |