Debian Codegraph @

gcc/testsuite/g++.old-deja/g++.other/anon4.C

raw
1 // { dg-do assemble }
2
3 // Copyright (C) 1999 Free Software Foundation, Inc.
4 // Contributed by Nathan Sidwell 20 May 1999 <[email protected]>
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 {
14 void bad(); // { dg-error "public non-static data member" }
15 };
16 };