summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.mike/opr-dot1.C
blob: a761a40c2b6f9767ec5476773efdb0752ac3be3d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
// { dg-do assemble  }

typedef struct base1 {
  int x;
} base1_t;

typedef struct base2 {
  int x;
} base2_t;

class derived1 : public base1 {
};

class derived2 : public derived1, public base2 {
};

struct test {
  derived2& fails;
  void test1() {
    fails.base1::x = 5;
  }
};