Fix skip.exp test failure observed with gcc-9.2.0
[deliverable/binutils-gdb.git] / gdb / testsuite / gdb.base / dump.c
CommitLineData
7cf03d44
MK
1#include <string.h>
2
dd7dfd64
MS
3#define ARRSIZE 32
4int intarray[ARRSIZE], intarray2[ARRSIZE];
5
6struct teststruct {
7 int a;
8 int b;
9 int c;
10 int d;
11 int e;
12 int f;
13 int g;
14} intstruct, intstruct2;
15
16void checkpoint1 ()
17{
18 /* intarray and teststruct have been initialized. */
19}
20
21void
22zero_all ()
23{
24 memset ((char *) &intarray, 0, sizeof (intarray));
25 memset ((char *) &intarray2, 0, sizeof (intarray2));
26 memset ((char *) &intstruct, 0, sizeof (intstruct));
27 memset ((char *) &intstruct2, 0, sizeof (intstruct2));
28}
29
a59add0c 30int
dd7dfd64
MS
31main()
32{
33 int i;
34
35 for (i = 0; i < ARRSIZE; i++)
36 intarray[i] = i+1;
37
38 intstruct.a = 12 * 1;
39 intstruct.b = 12 * 2;
40 intstruct.c = 12 * 3;
41 intstruct.d = 12 * 4;
42 intstruct.e = 12 * 5;
43 intstruct.f = 12 * 6;
44 intstruct.g = 12 * 7;
45
46 checkpoint1 ();
a59add0c 47 return 0;
dd7dfd64 48}
This page took 2.637823 seconds and 4 git commands to generate.