Nico Weber 74989aff53 compiler-rt: Rename cc files below test/sanitizer_common to cpp
See r367803 and similar other changes.

llvm-svn: 367863
2019-08-05 13:57:03 +00:00

14 lines
277 B
C++

// RUN: %clang %s -o %t && %run %t
// XFAIL: ubsan,lsan
#include <assert.h>
#include <sys/mman.h>
int main() {
assert(0 == mlockall(MCL_CURRENT));
assert(0 == mlock((void *)0x12345, 0x5678));
assert(0 == munlockall());
assert(0 == munlock((void *)0x987, 0x654));
}