libstdc++: Add missing constexpr to __atomic_impl::__clear_padding
[official-gcc.git] / gcc / testsuite / gcc.c-torture / execute / 931004-9.c
blob8a12691beb870ce17ae498d9962073bba3731502
1 void abort (void);
2 void exit (int);
4 struct tiny
6 char c;
7 char d;
8 };
10 void
11 f (int n, struct tiny x, struct tiny y, struct tiny z, long l)
13 if (x.c != 10)
14 abort();
15 if (x.d != 20)
16 abort();
18 if (y.c != 11)
19 abort();
20 if (y.d != 21)
21 abort();
23 if (z.c != 12)
24 abort();
25 if (z.d != 22)
26 abort();
28 if (l != 123)
29 abort ();
32 int
33 main (void)
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);