repo.or.cz
/
llvm-project.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git]
/
compiler-rt
/
test
/
sanitizer_common
/
TestCases
/
corelimit.cpp
blob
2378a4cfdced12a29dc4ef7c67f992e1c0bccde1
1
// RUN: %clangxx -O0 %s -o %t && %run %t
2
// UNSUPPORTED: lsan,ubsan
3
4
#include <assert.h>
5
#include <sys/time.h>
6
#include <sys/resource.h>
7
8
int
main
() {
9
struct
rlimit lim_core
;
10
getrlimit
(
RLIMIT_CORE
, &
lim_core
);
11
void
*
p
;
12
if
(
sizeof
(
p
) ==
8
) {
13
assert
(
0
==
lim_core
.
rlim_cur
);
14
}
15
return
0
;
16
}