Merge reload-branch up to revision 101000
[official-gcc.git] / gcc / testsuite / g++.dg / lookup / hidden-class7.C
blobf681cd649f1e3cf07aedc74306cf9313654aa46f
1 // Copyright (C) 2005 Free Software Foundation
2 // Contributed by Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
3 // { dg-do compile }
5 class A {
6   friend class B;
7 };
9 class C {
10   friend class B;
13 B *b;           // { dg-error "expected" }