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
tests/vg_regtest: Always evaluate prerequisite expressions with sh
[valgrind.git]
/
memcheck
/
tests
/
exitprog.c
blob
4f1c46a884c50e4f0c08ef0c5be4030a0bba88ab
1
2
3
#include <stdio.h>
4
#include <stdlib.h>
5
#include <unistd.h>
6
7
#define ZILLION 1000000
8
9
void
foo
(
void
);
10
void
bar
(
void
);
11
12
int
main
(
void
)
13
{
14
int
i
;
15
char
*
a
=
malloc
(
ZILLION
*
sizeof
(
char
));
16
for
(
i
=
0
;
i
<=
ZILLION
;
i
++) {
17
foo
();
18
a
[
i
] =
0
;
19
bar
();
20
}
21
a
= (
char
*)
177
;
22
_exit
(
1
);
23
}
24
25
void
foo
(
void
) { }
26
void
bar
(
void
) { }