• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // RUN: %clang  %s -o %t && %run %t
2 // XFAIL: ubsan,lsan
3 
4 #include <assert.h>
5 #include <sys/mman.h>
6 
main()7 int main() {
8   assert(0 == mlockall(MCL_CURRENT));
9   assert(0 == mlock((void *)0x12345, 0x5678));
10   assert(0 == munlockall());
11   assert(0 == munlock((void *)0x987, 0x654));
12 }
13 
14