2003-12-26 Guilhem Lavaux <guilhem@kaffe.org>
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.mike / p5718.C
blobf021d9503fd36f715382a3a775588108c2d19cbe
1 // { dg-do run  }
2 // prms-id: 5718
4 class Base {
5   int i;
6 public:
7   Base() { i = 42; };
8 };
11 class Mixin {
12   int j;
13 public:
14   Mixin() { j = 42; }
18 class Derived : public Base, public Mixin {
19 public:
20   Derived() { };
21   Derived & operator=(Mixin & m) { return *this; };
25 void
26 testFunct(Derived * arg) {
27   Mixin temp;
29   (Mixin &)(*arg) = temp;               // { dg-bogus "" }  
33 int
34 main(int argc, char *argv[]) {
35   Derived temp;
37   testFunct(&temp);