Debian Codegraph @

gcc/testsuite/gcc.c-torture/execute/20000726-1.c

raw
1 void abort (void);
2 void exit (int);
3
4 void adjust_xy (short *, short *);
5
6 struct adjust_template
7 {
8 short kx_x;
9 short kx_y;
10 short kx;
11 short kz;
12 };
13
14 static struct adjust_template adjust = {0, 0, 1, 1};
15
16 int
17 main (void)
18 {
19 short x = 1, y = 1;
20
21 adjust_xy (&x, &y);
22
23 if (x != 1)
24 abort ();
25
26 exit (0);
27 }
28
29 void
30 adjust_xy (x, y)
31 short *x;
32 short *y;
33 {
34 *x = adjust.kx_x * *x + adjust.kx_y * *y + adjust.kx;
35 }