FSF GCC merge 02/23/03
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.mike / p5718.C
blob8858d389ef772874c103710f78058ef23d371544
1 // prms-id: 5718
3 class Base {
4   int i;
5 public:
6   Base() { i = 42; };
7 };
10 class Mixin {
11   int j;
12 public:
13   Mixin() { j = 42; }
17 class Derived : public Base, public Mixin {
18 public:
19   Derived() { };
20   Derived & operator=(Mixin & m) { return *this; };
24 void
25 testFunct(Derived * arg) {
26   Mixin temp;
28   (Mixin &)(*arg) = temp;               // gets bogus error 
32 int
33 main(int argc, char *argv[]) {
34   Derived temp;
36   testFunct(&temp);