OSDN Git Service

Add NIOS2 support. Code from SourceyG++.
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / g++.old-deja / g++.other / anon4.C
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 };