old-cross-binutils/gdb/testsuite/gdb.hp/hwwatchbus.c
1999-01-11 05:40:47 +00:00

9 lines
165 B
C

/* This program raises a SIGBUS signal on HP-UX when the
pointer "bogus_p" is dereferenced.
*/
int * bogus_p = (int *)3;
main()
{
*bogus_p = 0xdeadbeef;
}