3 // Copyright (C) 2000 Free Software Foundation, Inc.
4 // Contributed by Nathan Sidwell 17 Jan 2001 <nathan@codesourcery.com>
6 // Bug 1631. Default initialization of enumeral types did not convert to the
9 enum X { alpha, beta };
14 X y1 (0); // { dg-error "" } cannot convert
17 X *x2 = new X (0); // { dg-error "" } cannot convert