aboutsummaryrefslogtreecommitdiff
path: root/test/sanitizer_common/TestCases/corelimit.cc
blob: 8f54940d04ccef2df8676d11d3120eb93c0542dd (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// RUN: %clangxx -O0 %s -o %t && %run %t
// XFAIL: lsan

#include <assert.h>
#include <sys/time.h>
#include <sys/resource.h>

int main() {
  struct rlimit lim_core;
  getrlimit(RLIMIT_CORE, &lim_core);
  void *p;
  if (sizeof(p) == 8) {
    assert(0 == lim_core.rlim_max);
  }
  return 0;
}