Files
clang-p2996/compiler-rt/test/msan/Linux/eventfd.cc
Daniel Sanders 93c0f382b4 [mips][msan] Fix all the XPASSes following r278793 and r278795
All msan tests are now passing for mipsel and mips64el except for
allocator_mapping.cc which is marked unsupported.

llvm-svn: 279048
2016-08-18 10:50:46 +00:00

19 lines
363 B
C++

// RUN: %clangxx_msan -O0 %s -o %t && %run %t 2>&1
#include <assert.h>
#include <sys/eventfd.h>
#include <sanitizer/msan_interface.h>
int main(int argc, char *argv[]) {
int efd = eventfd(42, 0);
assert(efd >= 0);
eventfd_t v;
int ret = eventfd_read(efd, &v);
assert(ret == 0);
__msan_check_mem_is_initialized(&v, sizeof(v));
assert(v == 42);
}