| 1 |
// Copyright (C) 2005 Free Software Foundation |
| 2 |
// Contributed by Kriang Lerdsuwanakij <[email protected]> |
| 3 |
// { dg-do compile } |
| 4 |
|
| 5 |
class A { |
| 6 |
friend class B; |
| 7 |
}; |
| 8 |
|
| 9 |
class C { |
| 10 |
friend class B; |
| 11 |
}; |
| 12 |
|
| 13 |
B *b; // { dg-error "type|expected" } |