blob: 45ed8c6f0392b21f8dc992432a3b533a9258be3e [file] [log] [blame]
// PR c++/64717
// { dg-do compile }
// { dg-options "-O2 -Wuninitialized -fsanitize=vptr" }
class Foo {};
Foo make_foo ();
struct Handle { virtual ~Handle (); };
Handle open (Foo);
void
bar ()
{
Handle file (open (make_foo ())); // { dg-bogus "is used uninitialized" }
}