2003-12-26 Guilhem Lavaux <guilhem@kaffe.org>
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.other / warn5.C
blob84fa3e426b2b4cacf7ef8b6dd292b81288b8ed9a
1 // { dg-do assemble  }
2 // { dg-options "-W " }
3 // 
4 // Copyright (C) 2000 Free Software Foundation, Inc.
5 // Contributed by Nathan Sidwell 6 Febs 2001 <nathan@codesourcery.com>
7 // Bug 1765. We gave bogus warning on default initializer.
9 struct X
11   int i;
14 X *foo ()
16   return new X ();  // gets bogus warning
19 X x = {};           // { dg-warning "" } missing initializer