diff options
Diffstat (limited to 'gdb/testsuite/gdb.hp/pxdb.c')
-rw-r--r-- | gdb/testsuite/gdb.hp/pxdb.c | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/gdb/testsuite/gdb.hp/pxdb.c b/gdb/testsuite/gdb.hp/pxdb.c new file mode 100644 index 0000000..e3e3fc2 --- /dev/null +++ b/gdb/testsuite/gdb.hp/pxdb.c @@ -0,0 +1,20 @@ +#include <stdio.h> + +int callee( x ) +int x; +{ + int y = x * x; + return (y - 2); +} + +main() +{ + int i; + for (i = 1; i < 10; i++) + { + printf( "%d ", callee( i )); + + } + printf( " Goodbye!\n" ); + +} |