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>
6 
7 // Bug 1765. We gave bogus warning on default initializer.
8 
9 struct X
10 {
11   int i;
12 };
13 
foo()14 X *foo ()
15 {
16   return new X ();  // gets bogus warning
17 }
18 
19 X x = {};           // { dg-warning "" } missing initializer
20