1 // RUN: %clangxx -O0 -g %s -o %t && %run %t
12 ngroups
= sysconf(_SC_NGROUPS_MAX
);
13 groups
= (gid_t
*)malloc(ngroups
* sizeof(gid_t
));
17 if (!(root
= getgrnam("root")))
20 if (getgrouplist("root", root
->gr_gid
, groups
, &ngroups
) == -1)
23 if (groups
&& ngroups
) {