blob: eca9fc343490a501ec7f2db46385c94ed58d1dc1 [file] [log] [blame]
Fariborz Jahanian7881a052009-06-29 22:33:26 +00001// RUN: clang-cc -fsyntax-only -verify %s
2
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'}} \
10 // expected-error {{multiple initializations given for base 'class S'}}
11
12 int b1;
13 int b2;
14
15};
16
17