blob: 2378a4cfdced12a29dc4ef7c67f992e1c0bccde1 [file] [log] [blame]
// RUN: %clangxx -O0 %s -o %t && %run %t
// UNSUPPORTED: lsan,ubsan
#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_cur);
}
return 0;
}