OSDN Git Service

cp/ChangeLog
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / g++.old-deja / g++.other / friend8.C
1 // { dg-do assemble  }
2 // 
3 // Copyright (C) 2000 Free Software Foundation, Inc.
4 // Contributed by Nathan Sidwell 14 Aug 2000 <nathan@codesourcery.com>
5
6 // We failed to diagnose when a class friend declaration did not use an
7 // elaborated type specifier.
8
9 struct Y;
10 struct Z;
11 struct X
12 {
13   friend class Z;
14   friend Y;         // { dg-error "" } friend must use aggr tag
15 };
16