Debian Codegraph @

gcc/testsuite/gcc.c-torture/execute/931004-5.c

raw
1 void abort (void);
2 void exit (int);
3
4 struct tiny
5 {
6 short c;
7 short d;
8 };
9
10 void
11 f (int n, struct tiny x, struct tiny y, struct tiny z, long l)
12 {
13 if (x.c != 10)
14 abort();
15 if (x.d != 20)
16 abort();
17
18 if (y.c != 11)
19 abort();
20 if (y.d != 21)
21 abort();
22
23 if (z.c != 12)
24 abort();
25 if (z.d != 22)
26 abort();
27
28 if (l != 123)
29 abort ();
30 }
31
32 int
33 main (void)
34 {
35 struct tiny x[3];
36 x[0].c = 10;
37 x[1].c = 11;
38 x[2].c = 12;
39 x[0].d = 20;
40 x[1].d = 21;
41 x[2].d = 22;
42 f (3, x[0], x[1], x[2], (long) 123);
43 exit(0);
44 }
45