1 // RUN: %clangxx -O0 %s -o %t && %run %t
2 // UNSUPPORTED: lsan,ubsan
6 #include <sys/resource.h>
9 struct rlimit lim_core
;
10 getrlimit(RLIMIT_CORE
, &lim_core
);
13 // rlim_cur will be set to zero or one depending on the target OS and
14 // initial core limits. See comments in DisableCoreDumperIfNecessary().
15 assert(lim_core
.rlim_cur
<= 1u);