* gcc.target/i386/mpx/hard-reg-1-nov.c (mpx_test): Use "esp"
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.mike / p5718.C
blobd0acbb9bdab9ee80ef96948c34c7bd0441f8e99d
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);