binutils-gdb/gdb/testsuite/gdb.hp/hwwatchbus.c

10 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;
}