1 // { dg-do assemble  }
2 
3 // Copyright (C) 1999 Free Software Foundation, Inc.
4 // Contributed by Nathan Sidwell 20 May 1999 <nathan@acm.org>
5 
6 // Anon unions cannot have user defined member functions
7 // [class.union/2].  Make sure we spot that.
8 
9 
10 struct A
11 {
12   union
13   {  // { dg-error "" } anon union cannot have member fns
14     void bad();
15   };
16 };
17