Files
clang-p2996/compiler-rt/test/sanitizer_common/TestCases/Linux/mlock_test.cc
Vitaly Buka fd5960a653 [ubsan] Enable UBsan in sanitizer_common tests
Summary:
Failing tests just marked as UNSUPPORTED or XFAIL.
Some of them can be easily supported, but I'll do this in separate patches.

Reviewers: eugenis, alekseyshl

Subscribers: srhines, kubamracek, llvm-commits, mgorny

Differential Revision: https://reviews.llvm.org/D37630

llvm-svn: 312860
2017-09-09 06:10:58 +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));
}