old-cross-binutils/gdb/testsuite/gdb.hp/gdb.base-hp/hwwatchbus.c
1999-08-16 19:57:19 +00:00

9 lines
169 B
C

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