2018-11-07 Richard Biener <rguenther@suse.de>
[official-gcc.git] / gcc / testsuite / g++.dg / other / error9.C
blob41e8cdd0293f516b462ef0530a8f7133e2243cf4
1 // { dg-options -Wall }
3 // Copyright (C) 2004 Free Software Foundation, Inc.
4 // Contributed by Nathan Sidwell 27 Sept 2004 <nathan@codesourcery.com>
6 // Origin:       v.haisman@sh.cvut.cz
7 // Bug 17681: bad diagnostic text.
9 struct A
10 { };
12 struct B
13 { };
15 struct C : public B, public A
17   C ()  // { dg-warning "when initialized" }
18     : A(), B()  // { dg-warning "base .\[AB\]." }
19   { }