repo.or.cz
/
valgrind.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
FreeBSD: add file descriptor tracking for _umtx_op
[valgrind.git]
/
none
/
tests
/
stackgrowth.c
blob
cb241a1b34b0238a97de4914fc98f0b2fc4c4a85
1
#include <stdio.h>
2
#include <string.h>
3
4
#define DEPTH (4*1024)
5
#define FRAME (1024)
6
7
static void
test
(
int
depth
)
8
{
9
volatile
char
frame
[
FRAME
];
10
11
memset
((
char
*)
frame
,
0xff
,
sizeof
(
frame
));
12
13
if
(
depth
>
1
)
14
test
(
depth
-
1
);
15
}
16
17
int
main
()
18
{
19
test
(
DEPTH
);
20
21
printf
(
"PASSED
\n
"
);
22
return
0
;
23
}