tests/vg_regtest: Always evaluate prerequisite expressions with sh
[valgrind.git] / memcheck / tests / exitprog.c
blob4f1c46a884c50e4f0c08ef0c5be4030a0bba88ab
3 #include <stdio.h>
4 #include <stdlib.h>
5 #include <unistd.h>
7 #define ZILLION 1000000
9 void foo ( void );
10 void bar ( void );
12 int main ( void )
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();
21 a = (char*)177;
22 _exit(1);
25 void foo ( void ) { }
26 void bar ( void ) { }