From c906108c21474dfb4ed285bcc0ac6fe02cd400cc Mon Sep 17 00:00:00 2001 From: Stan Shebs Date: Fri, 16 Apr 1999 01:35:26 +0000 Subject: Initial creation of sourceware repository --- gdb/testsuite/gdb.base/ending-run.c | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 gdb/testsuite/gdb.base/ending-run.c (limited to 'gdb/testsuite/gdb.base/ending-run.c') diff --git a/gdb/testsuite/gdb.base/ending-run.c b/gdb/testsuite/gdb.base/ending-run.c new file mode 100644 index 00000000000..56335cf1cd7 --- /dev/null +++ b/gdb/testsuite/gdb.base/ending-run.c @@ -0,0 +1,27 @@ +/* Test program for and + * bugs. + */ +#include + +int callee( x ) +int x; +{ + int y = x * x; + return (y - 2); +} + +main() +{ + + int *p; + int i; + + p = (int *) malloc( 4 ); + + for (i = 1; i < 10; i++) + { + printf( "%d ", callee( i )); + + } + printf( " Goodbye!\n" ); +} -- cgit v1.2.1