2 // g++ 1.37.1 bug 900407_01
4 // g++ fails to flag errors for uses of anachronistic features such as the
5 // invocation of a base class constructor in a ctor-initializer list without
6 // explicitly giving its name.
8 // Errors should probably be issued for such usage unless the -traditional
11 // Warnings are however issued.
13 // Cfront 2.0 flags such usage as an error when the +p (pure-language) option
16 // Cfront 2.0 passes this test.
18 // keywords: anachronism, inheritance, initialization, mem-initializer
28 struct s1 : public s0 {
34 s1::s1() : () { // { dg-error "" } anachronism used
37 int main () { return 0; }