diff options
Diffstat (limited to 'gdb/testreg.c')
-rw-r--r-- | gdb/testreg.c | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/gdb/testreg.c b/gdb/testreg.c new file mode 100644 index 0000000..f19ec05 --- /dev/null +++ b/gdb/testreg.c @@ -0,0 +1,22 @@ +main (argc, argv) + int argc; + char **argv; +{ + register int d1 = 34; + register int d2 = 35; + register int d3 = 36; + register int d4 = 37; + register char *a1 = "1"; + register char *a2 = "2"; + register char *a3 = "3"; + register char *a4 = "4"; + register char *a5 = "5"; + int x[4]; + foo (); + foo (0x222, abort (), 0x444); +} + +foo () +{ + return 22; +} |