blob: 4c17dc664068230f9ca029af64d6bb3af969bfe9 [file] [log] [blame]
// Special g++ Options: -W
// Build don't link:
//
// Copyright (C) 2000 Free Software Foundation, Inc.
// Contributed by Nathan Sidwell 6 Febs 2001 <nathan@codesourcery.com>
// Bug 1765. We gave bogus warning on default initializer.
struct X
{
int i;
};
X *foo ()
{
return new X (); // gets bogus warning
}
X x = {}; // WARNING - missing initializer