Debian Codegraph @

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

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