Remove old autovect-branch by moving to "dead" directory.
[official-gcc.git] / old-autovect-branch / gcc / testsuite / g++.old-deja / g++.other / anon4.C
blob2a01be3d0aa2f8974090862c47fcbda318afe331
1 // { dg-do assemble  }
3 // Copyright (C) 1999 Free Software Foundation, Inc.
4 // Contributed by Nathan Sidwell 20 May 1999 <nathan@acm.org>
6 // Anon unions cannot have user defined member functions
7 // [class.union/2].  Make sure we spot that.
10 struct A
12   union
13   {  // { dg-error "" } anon union cannot have member fns
14     void bad();
15   };