Esempio n. 1
0
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;
}
Esempio n. 2
0
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;
}