blob: 67bc43c2e80bee6e560e2dc86d53c57a1f13064f [file] [log] [blame]
Daniel Dunbara5728872009-12-15 20:14:24 +00001// RUN: %clang_cc1 -fsyntax-only -verify %s
Fariborz Jahanian7881a052009-06-29 22:33:26 +00002
3class S {
4public:
5 S ();
6};
7
8struct D : S {
9 D() : b1(0), b2(1), b1(0), S(), S() {} // expected-error {{multiple initializations given for non-static member 'b1'}} \
Mike Stump1eb44332009-09-09 15:08:12 +000010 // expected-note {{previous initialization is here}} \
11 // expected-error {{multiple initializations given for base 'class S'}} \
12 // expected-note {{previous initialization is here}}
Fariborz Jahanian7881a052009-06-29 22:33:26 +000013
14 int b1;
15 int b2;
16
17};
18
19