blob: 129690c82be4ccab012030c8e506520a519f6e1b [file] [log] [blame]
// { dg-do compile { target c++11 } }
struct d
{
struct e
{
int f;
int *g;
};
void h (e * i)
{
void *j = nullptr; // { dg-bogus "NULL" }
i->f = *i->g; // { dg-warning "dereference of NULL 'i'" }
}
virtual void c (int, int)
{
int *j = nullptr;
h (nullptr);
}
};
void
foo ()
{
d ();
}