2003-12-26 Guilhem Lavaux <guilhem@kaffe.org>
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.other / anon5.C
blob4b0943683d48a25960e573bd23fec0f967f343e9
1 // { dg-do assemble  }
2 // Copyright (C) 2000 Free Software Foundation, Inc.
3 // Contributed by Nathan Sidwell 14 Nov 2000 <nathan@codesourcery.com>
5 // Bug 649. A cv qualified anonymous union would cause confusion.
7 struct X
9   int fn () const
10   {
11     return member;
12   }
13   const union
14   {
15     int member;
16   };