struct demangle_component * d_type (struct d_info *di) { struct demangle_component *ret; ret = d_make_empty (di); foo (ret->type); /* { dg-warning "null pointer dereference" } */ bar (ret->zzz); /* { dg-warning "null pointer dereference" } */ return ret; }
struct demangle_component * d_type (struct d_info *di) { struct demangle_component *ret; ret = d_make_empty (di); ret->type = 42; ret->zzz = -1; return ret; }