summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.mike/warn3.C
blob: 74fe170454bf783c9b8aabe9e0b18ba8384d849c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// { dg-do assemble  }
// { dg-options "-Wall" }

class B {
public:
  B(int) { }
};

class D : public B {
  int member;		                // { dg-warning "" } reordered
  D() : member(0), B(member) { }	// { dg-warning "" } reordered
};