[PATCH 7/57][Arm][GAS] Add support for MVE instructions: vstr/vldr
[binutils-gdb.git] / gdb / testsuite / gdb.base / ending-run.c
blob1e09f1648775931bce225ac5b87d64f948f9ecb9
1 /* Test program for <next-at-end> and
2 * <leaves-core-file-on-quit> bugs.
3 */
4 #include <stdio.h>
5 #include <stdlib.h>
7 #include "../lib/unbuffer_output.c"
9 int callee (int x)
11 int y = x * x; /* -break1- */
12 return (y - 2);
15 int main()
18 int *p;
19 int i;
21 gdb_unbuffer_output ();
23 p = (int *) malloc( 4 );
25 for (i = 1; i < 10; i++)
27 printf( "%d ", callee( i ));
28 fflush (stdout);
30 printf( " Goodbye!\n" ); fflush (stdout); /* -break2- */
31 return 0;