FSF GCC merge 02/23/03
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.other / warn5.C
blob4c17dc664068230f9ca029af64d6bb3af969bfe9
1 // Special g++ Options: -W 
2 // Build don't link:
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 = {};           // WARNING - missing initializer