diff options
Diffstat (limited to 'gdb/testfun.c')
-rw-r--r-- | gdb/testfun.c | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/gdb/testfun.c b/gdb/testfun.c new file mode 100644 index 0000000..eeeebd7 --- /dev/null +++ b/gdb/testfun.c @@ -0,0 +1,22 @@ +main () +{ + register double a = 1.5; + foo (a); +} + +foo (x) +{ + printf ("%f\n", x); +} + +do_add (x, y) +{ + return x + y; +} + +double +do_float_add (x, y, z) + register double x, y, z; +{ + return x + y + z; +} |