old-cross-binutils/gdb/testsuite/gdb.hp/gdb.base-hp/hwwatchbus.c

10 lines
169 B
C
Raw Normal View History

1999-08-16 19:57:19 +00:00
/* 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;
}