1 /* RUN: %clangxx_msan -O0 %s -o %t && %run %t 2>&1
3 REQUIRES: target={{.*(linux|freebsd).*}}
7 #include <sys/eventfd.h>
9 #include <sanitizer/msan_interface.h>
11 int main(int argc
, char *argv
[]) {
12 int efd
= eventfd(42, 0);
16 int ret
= eventfd_read(efd
, &v
);
18 __msan_check_mem_is_initialized(&v
, sizeof(v
));