Nicholas Nethercote afebe61b37 Files updated, added and removed in order to turn the ERASER branch into HEAD
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@1086
2002-09-23 09:36:25 +00:00

21 lines
344 B
C

#include <stdio.h>
#include <stdlib.h>
#include <signal.h>
void sig_hdlr ( int signo )
{
printf ( "caught sig segv\n" );
exit(1);
}
int main ( void )
{
printf ( "installing sig handler\n" );
signal(SIGSEGV, sig_hdlr);
printf ( "doing bad thing\n" );
* (int*) 65536 = 0;
printf ( "exited normally ?!\n" );
return 0;
}