1 // RUN: %clang_msan -std=c99 -O0 -g %s -o %t && %run %t
3 // strerror_r under a weird set of circumstances can be redirected to
4 // __xpg_strerror_r. Test that MSan handles this correctly.
6 #define _POSIX_C_SOURCE 200112
14 int res
= strerror_r(EINVAL
, buf
, sizeof(buf
));
16 volatile int z
= strlen(buf
);