1 // Regression test for a crash in getpwnam_r and similar interceptors.
2 // RUN: %clangxx -O0 -g %s -o %t && %run %t
14 struct passwd
*pwdres
;
16 int res
= getpwnam_r("no-such-user", &pwd
, buf
, sizeof(buf
), &pwdres
);
17 assert(res
== 0 || res
== ENOENT
);