2 // Copyright (C) 1999 Free Software Foundation, Inc.
3 // Contributed by Nathan Sidwell 20 May 1999 <nathan@acm.org>
5 // Although anon unions cannot have user defined member functions
6 // [class.union/2]. They should have implicitly defined copy ctors and
7 // and the like [class.copy/4]. Make sure we generate one of the correct
8 // signature and that it works ok.
10 extern "C" void abort();
24 static A Ctor(A const &src)
26 A result(src); // this should not cause a const violation
28 result = src; // and neither should this
33 typedef __SIZE_TYPE__ size_t;
35 void *operator new(size_t, void *ptr)
40 // check copy ctor and assignment for plain union
60 // check copy ctor and assignment for class containing anon-union
61 void check_union_member()