blob: 67bc43c2e80bee6e560e2dc86d53c57a1f13064f [file] [log] [blame]
// RUN: %clang_cc1 -fsyntax-only -verify %s
class S {
public:
S ();
};
struct D : S {
D() : b1(0), b2(1), b1(0), S(), S() {} // expected-error {{multiple initializations given for non-static member 'b1'}} \
// expected-note {{previous initialization is here}} \
// expected-error {{multiple initializations given for base 'class S'}} \
// expected-note {{previous initialization is here}}
int b1;
int b2;
};